QuestionQ109

VerifiedDeployment

A team deploys an AWS CloudFormation template to update a stack that already included an Amazon DynamoDB table. However, before the deployment of the update, the team changed the name of the DynamoDB table on the template by mistake. The DeletionPolicy attribute for all resources has the default value.

What will be the result of this mistake?

Explanation

Renaming a DynamoDB table's logical property in a CloudFormation template forces a replacement, since the table name cannot be updated in place. With the default DeletionPolicy (Delete), CloudFormation provisions the new table with the new name first and then deletes the old table once the update succeeds, so any data not otherwise backed up is lost.

Learn more

Community Discussion

No comments yet. Be the first to start the discussion!