Skip to content

Instantly share code, notes, and snippets.

@SteveHoggNZ
Created December 1, 2016 22:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save SteveHoggNZ/bdc55a1a6c633346f44620f1a9a9d848 to your computer and use it in GitHub Desktop.
Save SteveHoggNZ/bdc55a1a6c633346f44620f1a9a9d848 to your computer and use it in GitHub Desktop.
CloudFormation / DeletionPolicy example
{
"Resources": {
"myS3Bucket": {
"Type" : "AWS::S3::Bucket",
"Properties" : {},
"DeletionPolicy" : "Retain"
},
"myEBSVolume": {
"Type":"AWS::EC2::Volume",
"Properties" : {
"AvailabilityZone": {
"Fn::Select" : [ "0", { "Fn::GetAZs" : "" } ]
},
"Size": "1",
"VolumeType": "standard"
},
"DeletionPolicy" : "Snapshot"
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment