Skip to content
Cloud Governance Tools

Require server-side encryption on S3 uploads

Require server-side encryption on S3 uploads is an AWS guardrail written in service control policies. Denies s3:PutObject when the request does not include the s3:x-amz-server-side-encryption header. What it breaks: upload requests that omit the server-side encryption header fail for every principal in the affected accounts; the policy has no exception condition.

More encryption and keys guardrails ยท About Service control policies

{
  "Version": "2012-10-17",
  "Statement": [
    {
      "Effect": "Deny",
      "Action": "s3:PutObject",
      "Resource": "*",
      "Condition": {
        "Null": {
          "s3:x-amz-server-side-encryption": "true"
        }
      }
    }
  ]
}
Blocks
Denies s3:PutObject when the request does not include the s3:x-amz-server-side-encryption header.
Breaks
Upload requests that omit the server-side encryption header fail for every principal in the affected accounts; the policy has no exception condition. (source)
Test before applying
As for every Service control policies guardrail: how to test before enforcing
Mechanism
Service control policies (SCPs): IAM users, IAM roles and the root user in member accounts; not the management account and not service-linked roles.
Taken from
open source set, MIT-0 (README states MIT-0; LICENSE file fetched, MIT-0 text, Copyright Amazon.com, Inc.): https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/LICENSE

What the policy text names

It names 1 action or pattern: s3:PutObject. Its conditions test s3:x-amz-server-side-encryption.

What the source says

"s3:x-amz-server-side-encryption: true" (read 10 Nov 2026).

What it breaks is documented for every guardrail of this mechanism: see Service control policies.

Sources

  1. Require server-side encryption on S3 uploads, read 10 Nov 2026
  2. What it breaks, read 10 Nov 2026
  3. How to test it first, read 10 Nov 2026

Last reviewed 16 Nov 2026.