A developer is updating an existing AWS CloudFormation stack. The update fails due to a configuration error in a new resource, and the stack rolls back to its last known stable state, transitioning to the `UPDATE_ROLLBACK_COMPLETE` status. The developer corrects the error in the template.
Which action should the developer take to successfully deploy the corrected template changes?
- Apply the corrected template to the existing stack by running a new update operation.Cevap
- BRemove the current stack entirely and create a new one using the corrected template.
- CUpdate the assume role policy document of the CloudFormation role to allow the service to bypass the configuration error.
- DAttempt to update the stack with the corrected template while the rollback operation is still actively running.
Cevap
Apply the corrected template to the existing stack by running a new update operation.
Applying the corrected template directly to the existing stack is the correct path forward because when an update fails and rolls back, the stack is in the UPDATE_ROLLBACK_COMPLETE state. This state is stable and allows direct update operations to be executed.
Adım Adım Çözüm
Anahtar Kavram
Handling failed CloudFormation stack updates and understanding the UPDATE_ROLLBACK_COMPLETE state.
Tahmini Süre:1m 0s