A developer is maintaining an application stack deployed via AWS CloudFormation. A recent stack update failed because a Security Group managed by the stack was manually deleted via the Amazon EC2 console, causing the stack rollback to fail. The stack is currently stuck in the UPDATE_ROLLBACK_FAILED state. The developer needs to return the stack to a stable state so they can apply a new template. Which two actions must the developer perform to resolve this issue? (Select TWO.)
- Invoke the ContinueUpdateRollback operation from the AWS CloudFormation console or CLI.Cevap
- Recreate the manually deleted Security Group with the exact same physical name, or specify the resource to be skipped in the ResourcesToSkip parameter during the rollback continuation.Cevap
- CInitiate a new stack update directly using the UpdateStack API with the --disable-rollback parameter enabled.
- DRun drift detection on the stack and select the 'Auto-Reconcile' option to let CloudFormation automatically recreate the missing Security Group.
- ERetrieve the Security Group's configuration parameters from AWS Systems Manager Parameter Store using a dynamic reference to force-refresh the template state.
Cevap
To resolve the UPDATE_ROLLBACK_FAILED state, the developer must continue the rollback using the ContinueUpdateRollback operation and either recreate the manually deleted Security Group or specify it as a resource to skip during rollback.
To resolve the UPDATE_ROLLBACK_FAILED state, the developer must continue the rollback using the ContinueUpdateRollback operation. Because the failure was caused by a manually deleted resource (the Security Group), the rollback cannot proceed unless the developer either recreates the resource with the exact same physical ID/name so the rollback process can delete or modify it, or explicitly skips the resource using the ResourcesToSkip parameter.
Adım Adım Çözüm
Anahtar Kavram
Resolving UPDATE_ROLLBACK_FAILED state in AWS CloudFormation