A developer is managing a production web application deployed via an AWS CloudFormation stack. The stack consists of an Amazon RDS DB instance, an Amazon EC2 Auto Scaling group, and an IAM role associated with the EC2 instances. To troubleshoot a connection issue, an administrator manually modified the EC2 security group rules and deleted the IAM role directly in the AWS Management Console. During a subsequent stack update to upgrade the database instance class, the update failed and the stack is now in the UPDATE_ROLLBACK_FAILED state. Which two actions should the developer take to resolve the stack status and reconcile the resource configurations? (Select TWO.)
- Manually recreate the deleted IAM role using the exact name and configuration it had prior to deletion, and then initiate the continue-update-rollback action.Cevap
- Execute the continue-update-rollback command and specify the logical ID of the deleted IAM role in the resources-to-skip parameter.Cevap
- CPerform a drift detection on the stack and use the CloudFormation drift resolution console to automatically import the manual security group modifications into the template.
- DInitiate a new stack update using the update-stack command with a modified template to bypass the rollback phase and force the database upgrade.
- EStore the updated security group configurations in the Systems Manager Parameter Store and use a dynamic reference to force stack synchronization.
Cevap
To resolve the UPDATE_ROLLBACK_FAILED state, the developer should either manually recreate the deleted IAM role and continue the rollback, or execute continue-update-rollback while skipping the deleted IAM role.
The correct options identify the two supported methods for resolving a stack stuck in the UPDATE_ROLLBACK_FAILED state. Recreating the deleted IAM role allows CloudFormation to find and delete/modify it during the rollback phase, which enables the rollback to complete successfully. Alternatively, calling the continue-update-rollback command and choosing to skip the deleted IAM role permits the rollback operation to skip that specific resource and successfully transition the stack to the UPDATE_ROLLBACK_COMPLETE state.
Adım Adım Çözüm
Anahtar Kavram
CloudFormation Stack Rollback Failure Resolution