Created
February 7, 2017 06:45
-
-
Save vinhlh/87065baa306e2b4d6f3dafec9835c9c0 to your computer and use it in GitHub Desktop.
Managing Secrets for Amazon EC2 Container Service–Based Applications
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": "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