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.

Brian H
已提問 1 年前檢視次數 789 次
1 個回答
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
專家
已回答 1 年前

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南