CloudFormation resource replacement
A CloudFormation update that deletes a resource and creates a new one, because a changed property cannot be updated in place.
In more detail
The resource schema lists such properties as createOnlyProperties, for example the name of a database or a table. Replacement gives the resource a new physical identifier and can lose its data. A change set shows it in advance, and DeletionPolicy and UpdateReplacePolicy decide whether the old resource is kept.
Related terms
- change set — A preview of what a CloudFormation stack update will do to each resource, made before anything changes.
- DeletionPolicy — A CloudFormation resource attribute that keeps or snapshots a resource when its stack is deleted, instead of deleting it.
Taught in
- CloudFormation In Depth: Replace Or Update? — AWS Certified DevOps Engineer – Professional (DOP-C02) Exam Prep