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

Taught in

References

Certification courses