A SysOps Administrator is updating an AWS CloudFormation stack. During the update process, a resource failure occurs and CloudFormation attempts to roll back the changes. However, the rollback fails, and the stack status changes to UPDATE_ROLLBACK_FAILED. The event logs indicate that the IAM service role originally used to create and manage the stack was deleted out-of-band.
What should the SysOps Administrator do to successfully complete the rollback and return the stack to a stable state?
- Run the aws cloudformation continue-update-rollback CLI command and specify a new, active IAM role ARN using the --role-arn parameter to perform the rollback operations.Cevap
- BModify the administrator's IAM user policy to grant the sts:AssumeRole permission on the deleted role, then execute aws cloudformation update-stack with a modified template.
- CCreate a new CloudFormation template that removes the references to the deleted service role, then run the aws cloudformation update-stack command to force the rollback to bypass the missing role.
- DDelete the existing stack immediately to terminate active resources, perform a DNS failover to a new blue/green stack environment, and allow CloudFormation to clean up any remaining resources during deletion.
Cevap
Run the continue-update-rollback command and specify a new, active IAM role ARN using the --role-arn parameter to perform the rollback operations.
Executing the continue-update-rollback command with a new, active IAM role ARN allows CloudFormation to bypass the deleted execution role and complete the rollback operations.
Adım Adım Çözüm
Anahtar Kavram
AWS CloudFormation Update Rollback Failures Remediation