# Require server-side encryption on S3 uploads

Facts read 10 Nov 2026. Page reviewed 16 Nov 2026.

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.

```json
{
  "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](https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html))
- **Test before applying:** As for every Service control policies guardrail: [how to test before enforcing](/mechanisms/scp/)
- **Mechanism:** [Service control policies (SCPs)](/mechanisms/scp/): 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](https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Service-specific-controls/Amazon-S3/Prevent-Amazon-S3-unencrypted-object-uploads.json), 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](/mechanisms/scp/).

## Related guardrails

- [Storage accounts should have the specified minimum TLS version](/guardrails/azure-policy-storage-min-tls/): Azure, Azure Policy (built-in definitions), encryption and keys
- [Key vaults should have deletion protection enabled](/guardrails/azure-policy-keyvault-purge-protection/): Azure, Azure Policy (built-in definitions), encryption and keys
- [OS and data disks should be encrypted with a customer-managed key](/guardrails/azure-policy-disk-cmk/): Azure, Azure Policy (built-in definitions), encryption and keys
- [Deny KMS key deletion](/guardrails/aws-scp-deny-kms-key-deletion/): AWS, Service control policies (SCPs), encryption and keys
- [Enforce a 30-day KMS key deletion window](/guardrails/aws-scp-kms-30-day-deletion-window/): AWS, Service control policies (SCPs), encryption and keys
- [Deny disabling default EBS encryption](/guardrails/aws-scp-deny-disable-ebs-default-encryption/): AWS, Service control policies (SCPs), encryption and keys

## Related pages

- [Deny access outside approved Regions (AWS Service control policies)](/guardrails/aws-scp-deny-unapproved-regions/)
- [Deny enabling or disabling opt-in Regions (AWS Service control policies)](/guardrails/aws-scp-deny-region-enable-disable/)
- [Region deny that allows Bedrock cross-Region inference (AWS Service control policies)](/guardrails/aws-scp-region-deny-with-bedrock-cris/)

## Sources

- Require server-side encryption on S3 uploads: https://raw.githubusercontent.com/aws-samples/service-control-policy-examples/main/Service-specific-controls/Amazon-S3/Prevent-Amazon-S3-unencrypted-object-uploads.json (read 10 Nov 2026)
- What it breaks: https://docs.aws.amazon.com/organizations/latest/userguide/orgs_manage_policies_scps.html (read 10 Nov 2026)
- How to test it first: https://docs.aws.amazon.com/IAM/latest/UserGuide/access_policies_testing-policies.html (read 10 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudgovernancetools.com/guardrails/aws-scp-require-s3-server-side-encryption/
