@claym I've figured out the credentials. Thanks.
By chance, would you know what the
apixxxGraphQLAPIEndpointOutputenv variable to should be when mocking the lambda function? I was having this issue: aws-amplify/amplify-cli#2453 and the last answer given seems to resolve the issue. However, I've tried adding
http://[ip address]:20002as the endpoint and it doesn't like the response. It gives me an unexpected token
< error...which probably means the endpoint is not correct.
amplify add authselect your options, then
amplify push. Now you have the deployed stack with Auth setup. To keep this backend only, you would just not setup any of the frontend js libs, etc…
I run a GraphQL mutation using the AWS AppSync Queries page. Now, the first time I try this mutation, everything works fine and the first time, but if I try to submit the mutation again without changing anything, I get an error...
This is my mutation:
city: "New York",
address: "555 W 55th Street",
This is the error that I get if I try the mutation above two times:
"message": "The conditional request failed (Service: AmazonDynamoDBv2; Status Code: 400; Error Code: ConditionalCheckFailedException; Request ID: A4NNQQ0SR2U23FSHO0EK7AM5BJVV4KQNSO5AEMVJF66Q9ASUAAJG)"
amplify add apiCLI as an annotated schema. Everything setup in the backend. But, it doesn't look like auth is correct. The run schema is disabled after I login.