A developer is managing an application infrastructure deployed using AWS CloudFormation. During a stack update, the update fails, and the stack enters the UPDATE_ROLLBACK_FAILED state because an IAM role resource defined in the template was manually deleted from the AWS account out-of-band. Which two actions should the developer take to resolve this issue and return the stack to a usable state? (Select TWO.)
- Manually recreate the IAM role with the exact same name and configuration that existed prior to the deletion, and then continue the update rollbackCevap
- Perform the ContinueUpdateRollback operation and list the deleted IAM role in the ResourcesToSkip parameterCevap
- CModify the CloudFormation template to remove the IAM role, and then immediately call the UpdateStack API to apply the template changes to the stack
- DPerform a stack drift detection, and then select the 'Auto-Remediate' option in the AWS CloudFormation console to automatically recreate the deleted IAM role
- ECreate a new parameter in AWS Systems Manager Parameter Store to store the IAM role properties, enable automatic rotation, and reference it via a dynamic reference in the stack
Cevap
To resolve the UPDATE_ROLLBACK_FAILED state caused by an out-of-band deletion, the developer must either manually recreate the IAM role with the same name and config before continuing the rollback, or execute the ContinueUpdateRollback operation while specifying the deleted IAM role in the ResourcesToSkip parameter.
The correct actions are to either recreate the deleted resource manually with the same name to allow the rollback process to interact with it, or skip the resource entirely using the ContinueUpdateRollback operation. Both approaches allow the stack to exit the UPDATE_ROLLBACK_FAILED state.
Adım Adım Çözüm
Anahtar Kavram
Handling CloudFormation stack update rollback failures caused by out-of-band resource deletion.