Last active
April 9, 2017 20:29
-
-
Save neverendingqs/3e95b25273ba88f47f8fe99786bf278f to your computer and use it in GitHub Desktop.
S3 No Delete Bucket Policy
This file contains 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
{ | |
"Id": "a3769712-3b2a-47e8-8206-85cdaf882384", | |
"Version": "2012-10-17", | |
"Statement": [ | |
{ | |
"Sid": "NoDelete", | |
"Action": [ | |
"s3:Delete*", | |
"s3:PutBucketPolicy" | |
], | |
"Effect": "Deny", | |
"Resource": [ | |
"arn:aws:s3:::<bucket_name>", | |
"arn:aws:s3:::<bucket_name>/*" | |
], | |
"Principal": "*" | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment