Created
April 2, 2021 20:11
-
-
Save bboure/cfac96b7aab10532bf115843e9436fcb to your computer and use it in GitHub Desktop.
5 Ways to Prevent Accidentally Deleting Your CloudFormation Resources
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Resources: | |
MyTable: | |
Type: AWS::DynamoDB::Table | |
DeletionPolicy: Retain | |
Properties: | |
TableName: mytable |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"Statement": [ | |
{ | |
"Effect": "Allow", | |
"Action": ["Update:*"], | |
"Principal": "*", | |
"Resource": "*" | |
}, | |
{ | |
"Effect": "Deny", | |
"Action": ["Update:Delete", "Update:Replace"], | |
"Principal": "*", | |
"Resource": ["LogicalResourceId/MyDynamoDBTable"] | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment