concept
Replacement, retention and rollback
DeletionPolicy handles removal or stack deletion; UpdateReplacePolicy handles disposal of replaced physical resources. Retention does not migrate data or guarantee restoration.
Formal Syntax & Structure
aws syntaxaws
DeletionPolicy: Retain; UpdateReplacePolicy: RetainWorking Example
Example Snippetaws
Archive replacement: retain the old bucket, test restoration and assign a cleanup owner.