Skip to content

Instantly share code, notes, and snippets.

@neverendingqs
Last active April 9, 2017 20:29
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 neverendingqs/3e95b25273ba88f47f8fe99786bf278f to your computer and use it in GitHub Desktop.
Save neverendingqs/3e95b25273ba88f47f8fe99786bf278f to your computer and use it in GitHub Desktop.
S3 No Delete Bucket Policy
{
"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