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"
}
}
}
]
}
답변함 일 년 전
관련 콘텐츠
- 질문됨 6달 전
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