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개 답변
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
전문가
답변함 일 년 전

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인

관련 콘텐츠