Skip to content

Instantly share code, notes, and snippets.

@seventhskye
Created August 1, 2016 10:30
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 seventhskye/b0c23b9e3048d6a4186a11be0f7dacf8 to your computer and use it in GitHub Desktop.
Save seventhskye/b0c23b9e3048d6a4186a11be0f7dacf8 to your computer and use it in GitHub Desktop.
Policy to require Server side encrpytion on access to an s3 bucket.
{
"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