Skill 3.4.3

Update existing IaC templates (for example, AWS SAM templates, CloudFormation templates)

Key Concepts

Depending on the property changed, CloudFormation updates a resource with no interruption, with some interruption, or by replacement, creating a new resource and deleting the old one. Replacing a database or a resource with a custom name can lose data or fail, so you should review a change set before executing it.

Stack policies protect critical resources from updates, DeletionPolicy and UpdateReplacePolicy retain or snapshot data, and failed updates roll back automatically. Drift detection shows resources that were changed manually since the last deployment.