1 Answer
- Newest
- Most votes
- Most comments
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"
}
}
}
]
}
answered a year ago
Relevant content
- asked 3 months ago
- asked 5 months ago
- asked a year ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated 2 years ago
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