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 年前
相關內容
- 已提問 6 個月前
- AWS 官方已更新 2 年前
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