Skip to content

Instantly share code, notes, and snippets.

@vinhlh
Created February 7, 2017 06:45
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 vinhlh/87065baa306e2b4d6f3dafec9835c9c0 to your computer and use it in GitHub Desktop.
Save vinhlh/87065baa306e2b4d6f3dafec9835c9c0 to your computer and use it in GitHub Desktop.
Managing Secrets for Amazon EC2 Container Service–Based Applications
{
"Version": "2012-10-17",
"Id": "PutObjPolicy",
"Statement": [
{
"Sid": "DenyUnEncryptedObjectUploads",
"Effect": "Deny",
"Principal": "*",
"Action": "s3:PutObject",
"Resource": "arn:aws:s3:::oms-services.secrets/*",
"Condition": {
"StringNotEquals": {
"s3:x-amz-server-side-encryption-aws-kms-key-id": "arn:aws:kms:ap-southeast-1:xxx:key/yyy",
"s3:x-amz-server-side-encryption": "aws:kms"
}
}
}
]
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment