Amplify push fails with UPDATE_ROLLBACK_COMPLETE shown as an error status.

0

I was trying to make some Amplify schema.graphql updates and the CloudFormation stack ended up showing an error status (red x) next to UPDATE_ROLLBACK_COMPLETE. The specific nested stack showing that error is an update to an API DynamoDB table (which isn't what I modified in the schema). Cloud Formation doesn't allow the Continue update rollback apparently because the status is UPDATE_ROLLBACK_COMPLETE rather than UPDATE_ROLLBACK_FAILED.

Cloud Formation Error

I have tried reverting the schema.graphql to the prior version with just some comment changes and running "amplify push", but no luck. It shows UPDATE_COMPLETE_CLEANUP_IN_PROGRESS on the erroring nested stack, but then that fails and it shows the same error again.

The Amplify CLI output only gives the following error: Rolled back (2 of 1) 🛑 ["Index: 0 State: {"deploy":"waitingForDeployment"} Message: Resource is not in the state stackUpdateComplete"]

I haven't been able to find anything in the Troubleshooting CloudFormation document about this particular state.

Note, that I was trying to make a change to a secondary index on a particular table when this happened. I omitted the sortKeyField, but it sounds like you can't actually make that sort of change to an existing GSI.

1 Answer
0

Hi - If amplify push fails, check the CloudFormation event logs for the failing resource to get detailed information to fix the issues in the failing environment. In the AWS CloudFormation console, search for your application's stack name. For instance, if your application was named "lil" and deployed in your "dev" environment, Amplify would have generated a CloudFormation stack named amplify-lil-dev-{random chars}. In the CloudFormation console, click on the application's stack name and then click on the "Resources" tab. The "Resources" tab displays the deployment status of all the resources in the stack. It will also show the deployment error reason.

profile pictureAWS
EXPERT
answered 10 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