An AWS CloudFormation stack update fails during execution, causing CloudFormation to initiate a rollback. However, the rollback process also fails, and the stack status changes to UPDATE_ROLLBACK_FAILED. The stack was configured to use a dedicated IAM service role named CloudFormationExecutionRole for all provisioning actions. Which actions should a SysOps Administrator perform to successfully return this stack to a stable, manageable state? (Select TWO.)
- Continue the stack rollback from the AWS CloudFormation console or AWS CLI, specifying the failed resources to be skipped.Answer
- Identify the missing permissions in the CloudFormationExecutionRole, attach an updated IAM policy containing those permissions, and continue the rollback.Answer
- CPerform a drift detection operation on the stack to identify the manual changes, then export the drift status to automatically sync the template.
- DEdit the stack template to add a DeletionPolicy of Retain for the failing resources, then perform a stack update to force a clean state.
- EModify the trust policy of CloudFormationExecutionRole to include iam:AssumeRole on itself to bypass the permission checks during rollback.
Answer
To resolve the rollback failure, the administrator should either continue the stack rollback while skipping the failed resources or update the execution role with the missing permissions and continue the rollback.
Continuing the rollback and skipping the failed resources allows CloudFormation to proceed with rolling back the rest of the stack, resolving the failed state. Alternatively, updating the execution role policy with the required permissions allows the rollback to successfully execute on the failing resource when continued.
Step-by-Step Solution
Key Concept
AWS CloudFormation Update Rollback Failures and Remediation