1回答
- 新しい順
- 投票が多い順
- コメントが多い順
0
Try this, let me know if this resolves your issue.
SCP: Restrict S3 uploads
Prevent uploads of unencrypted S3 objects.
{
"Sid": "DenyUnencryptedS3Uploads",
"Effect": "Deny",
"Action": "s3:PutObject",
"Resource": "*",
"Condition": {
"StringNotLike": {
"s3:x-amz-server-side-encryption": ["aws:kms", "AES256"]
},
"Null": {
"s3:x-amz-server-side-encryption": "false"
}
}
}
]
}
回答済み 1年前
No this is not what i asked, i want to add an exemption when a bucket has a tag "exempted": "yes". When the tag is added to bucket i would like to NOT enforce this SCP
Yes the policy itself is working and preventing any non-encrypted uploads, but now i am trying to see if i can add an exemption