Created
August 1, 2016 10:30
-
-
Save seventhskye/b0c23b9e3048d6a4186a11be0f7dacf8 to your computer and use it in GitHub Desktop.
Policy to require Server side encrpytion on access to an s3 bucket.
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
{ | |
"Version": "2012-10-17", | |
"Id": "Policy1469359009696", | |
"Statement": [ | |
{ | |
"Sid": "Stmt1469359007124", | |
"Effect": "Allow", | |
"Principal": "*", | |
"Action": "s3:*", | |
"Resource": "arn:aws:s3:::<BUCKET_NAME>/*", | |
"Condition": { | |
"StringEquals": { | |
"s3:x-amz-server-side-encryption": "true" | |
} | |
} | |
} | |
] | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment