Unable to amplify push

0

I am unable to push my GraphQL scheme changes to Amplify using amplify push.

GraphQLAPITransformerSchema3C… AWS::AppSync::GraphQLSchema UPDATE_FAILED

Here is the reason listed:

Reason: API key not found: ***-**********fqlbkcb2qdzg6abi (Service: AWSAppSync; Status Code: 404; Error Code: NotFoundException; Request ID: 1ec37db9-763b-46cd-ae62-59c14e601390; Proxy: null)

asked a year ago132 views
1 Answer
3

Please considering this:

  1. Check API Key Expiration • By default, API keys in AppSync have an expiration period. If the key has expired, you need to create a new one. • Run amplify api update and select the option to update the API key expiration. Set a new expiration period or disable expiration by setting APIKeyExpirationEpoch to -1 in the parameters.json file.
  2. Manually Recreate the API Key • Go to the AWS Management Console > AppSync. • Select your API and navigate to the Settings tab. • Check if the API key exists. If not, create a new API key and update your Amplify project with the new key.
  3. Update CloudFormation Stack • Sometimes, the CloudFormation stack gets into an inconsistent state. You can manually update the stack: o Go to AWS CloudFormation in the console. o Find the stack associated with your Amplify project. o Check for errors in the stack events and resolve them by recreating the missing resources.
  4. Force Push Changes • If the issue persists, try forcing a push: • amplify push --force • This can help resolve inconsistencies in the stack.
  5. Switch to IAM Authentication • If API keys are not essential for your use case, consider switching to IAM authentication for your GraphQL API. Update the auth settings in your schema.graphql file and run amplify push.
EXPERT
answered 2 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions