A SysOps Administrator is updating an AWS CloudFormation stack that manages an Auto Scaling group and an associated IAM role. The update fails, triggering an automatic rollback. During the rollback, the stack enters the UPDATE_ROLLBACK_FAILED state. The stack events show that the custom CloudFormation service role is missing the iam:PassRole permission required to associate the IAM instance profile with the Auto Scaling group's Launch Template.
Which two actions can the Administrator take to successfully complete the rollback and return the stack to a stable state? (Select TWO.)
- Modify the policy attached to the current custom CloudFormation service role to grant the iam:PassRole permission for the instance profile's IAM role, and then invoke the Continue Update Rollback operation.Cevap
- Invoke the Continue Update Rollback operation and specify the ARN of a different IAM service role that already has the required iam:PassRole permission.Cevap
- CModify the Administrator's personal IAM policy to grant the iam:PassRole permission for the CloudFormation service role, and then execute the Update Stack operation.
- DRun the Update Stack operation using the --rollback-configuration parameter and specify the previous working template version.
- EDelete the stack using the CloudFormation console, select the option to retain the Auto Scaling group, and then redeploy the stack using the original template.
Cevap
Modify the policy attached to the current custom CloudFormation service role to grant the iam:PassRole permission for the instance profile's IAM role, and then invoke the Continue Update Rollback operation. Alternatively, invoke the Continue Update Rollback operation and specify the ARN of a different IAM service role that already has the required iam:PassRole permission.
The correct options involve resolving the permissions gap and completing the rollback using the Continue Update Rollback API. A SysOps Administrator can either update the current service role's policy to add the required `iam:PassRole` permissions, or specify a different service role (using the `--role-arn` parameter) that has the correct permissions. Both methods allow the CloudFormation service to successfully execute the rollback operations and return the stack to a stable state.
Adım Adım Çözüm
Anahtar Kavram
CloudFormation Stack Recovery and Service Role Permissions