May 2019
Intermediate to advanced
308 pages
8h 5m
English
DeletionPolicy can be used to determine whether to retain a resource that was created within a CloudFormation deployment when the stack is terminated. DeletionPolicy will help us to retain any data that was created while the stack was operating.
There are three types of deletion policies:
Here is an example of a DeletionPolicy instance that will create a snapshot of the RDS database when the stack is deleted:
{ "Resources" : { "myRDSdb" : { "Type" : "AWS::RDS::DBInstance", "DeletionPolicy" : "Snapshot" } } }Read now
Unlock full access