s3 bucket policy don't seem to be getting applied
Closed this issue · 1 comments
gummadikrishna commented
Plugin works great in terms of creating new buckets but bucket policy don't seem to be getting applied when passing in as json .
Here is the policy I'm trying to apply
deploymentBucket:
policy:
{
"Id": "DeploymentBucketPolicy",
"Version": "2012-10-17",
"Statement": [
{
"Sid": "DenyIncorrectEncryptionHeader",
"Principal": "",
"Action": [
"s3:PutObject"
],
"Effect": "Deny",
"Resource": "arn:aws:s3:::testdeploymentbucket/",
"Condition": {
"StringNotEquals": {
"s3:x-amz-server-side-encryption": "aws:kms"
}
}
}
]
}
gummadikrishna commented
My bad . It gets applied as a charm as long as it is json . yml spec doesn't seem to be supported