An enterprise application's infrastructure is deployed using an AWS CloudFormation stack. During a scheduled stack update, the process fails and subsequent rollback attempts fail, leaving the stack stuck in the UPDATE_ROLLBACK_FAILED state. A SysOps Administrator discovers that the rollback failed because an IAM role resource was modified out-of-band and the CloudFormation service role lacks sufficient permissions to revert the changes. Which of the following actions should the administrator take to successfully resolve the UPDATE_ROLLBACK_FAILED state and complete the rollback? (Select TWO.)
- Resolve the permission issue by attaching the required policies to the CloudFormation service role, then run the continue-update-rollback command.Answer
- Run the continue-update-rollback command and specify the logical ID of the IAM role in the resources-to-skip parameter to bypass rolling back that resource.Answer
- CExecute the update-stack command with the rollback-configuration parameter to force a rollback override of the failed resources.
- DAttach an inline policy to the administrator's IAM user identity containing the iam:AssumeRole action targeting the CloudFormation service role to manually perform the rollback.
- EPerform a stack delete operation with the retain-resources parameter to delete the stack and redeploy it from the original template.
Answer
To resolve a stack in the UPDATE_ROLLBACK_FAILED state, you can either correct the underlying issue (e.g., updating the CloudFormation service role permissions) and execute the continue-update-rollback command, or execute the continue-update-rollback command and specify the failing resources in the resources-to-skip parameter to bypass them during rollback.
To resolve a stack stuck in the UPDATE_ROLLBACK_FAILED state, you must either fix the root cause that blocked the rollback (such as updating IAM service role permissions or resolving external resource dependencies) and run the continue-update-rollback command, or run the continue-update-rollback command while specifying the logical IDs of the failing resources in the resources-to-skip parameter to bypass them and complete the rollback of the rest of the stack.
Step-by-Step Solution
Key Concept
Resolving CloudFormation update rollback failures using the continue-update-rollback command and addressing underlying resource or permission issues.
Estimated Time:2m 0s