DeletionPolicy
A CloudFormation resource attribute that keeps or snapshots a resource when its stack is deleted, instead of deleting it.
In more detail
Retain leaves the resource in place and Snapshot keeps a final backup for resources that support it. UpdateReplacePolicy does the same when an update replaces the resource. Both protect stateful resources such as databases from an accidental template change.
Related terms
- AWS CloudFormation — AWS's own infrastructure-as-code service, which creates resources from YAML or JSON templates.
- CloudFormation resource replacement — A CloudFormation update that deletes a resource and creates a new one, because a changed property cannot be updated in place.
Taught in
- CloudFormation In Depth: Replace Or Update? — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep
- The Full Mock And Your Review Plan — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep