Stop 06 · Storage: S3, EBS & EFSTopics · 5/10

S3 Encryption (SSE-S3, SSE-KMS)

Part of the AWS Roadmap

In short

Every new object in S3 is already encrypted at rest. The real question in projects and interviews is who holds the keys and who can use them, and that's where SSE-KMS earns its place.

S3 encrypts all new objects at rest by default with SSE-S3, where S3 manages the keys. SSE-KMS uses AWS KMS keys so you get extra access control and an audit trail of key use, and client-side encryption encrypts data before upload.

The jaadu turns two keys at once in a row of bank lockers while a clerk at a small desk writes in a key log book.

Think of it like this

Bank lockers with two kinds of keys

In one bank the staff keep the locker keys and handle everything (SSE-S3). In another, you need the bank's key plus a second key from a key office that records every time it is used and lets you choose who may borrow it (SSE-KMS).

Watch it happen

SSE-S3 vs SSE-KMS

SSE-S3 (default)

  • S3 creates and manages the keys
  • Turned on for every bucket automatically
  • No extra cost, no setup
  • Anyone allowed to read the object can decrypt it

SSE-KMS

  • Uses an AWS KMS key you can control
  • Readers also need kms:Decrypt on that key
  • Every key use appears in CloudTrail
  • KMS request charges, reduced with S3 Bucket Keys

SSE-S3 is fine for most data. Use SSE-KMS with a customer managed key when you need separate key permissions, audit trails or compliance controls.

The big ideas

What you need to know

Encrypted by default

Since January 2023, S3 encrypts all new objects with SSE-S3 unless you choose another option.

Two permissions with KMS

To read an SSE-KMS object you need s3:GetObject and kms:Decrypt on the key. Missing either gives AccessDenied.

Bucket Keys

An S3 Bucket Key cuts KMS calls, and cost, by using a bucket-level data key.

Client-side encryption

Encrypt before upload when even AWS must never see plain data. You then manage keys and decryption yourself.

See it in code

Walk through the code

bash
1# Make SSE-KMS the default for the bucket, with a Bucket Key2aws s3api put-bucket-encryption --bucket acme-payroll \3  --server-side-encryption-configuration '{4    "Rules": [{5      "ApplyServerSideEncryptionByDefault": {6        "SSEAlgorithm": "aws:kms",7        "KMSMasterKeyID": "alias/payroll-key"8      },9      "BucketKeyEnabled": true10    }]11  }'12 13# Upload one file and check how it was encrypted14aws s3 cp salary-slips.zip s3://acme-payroll/2026/11/15aws s3api head-object --bucket acme-payroll --key 2026/11/salary-slips.zip \16  --query "{Algo:ServerSideEncryption,Key:SSEKMSKeyId}"

1/4Default encryption applies to every new object that doesn't ask for something else.

Set a customer managed KMS key as the bucket default, then confirm a new upload used it.

Save yourself the pain

Common mistakes

Oops

Giving a role s3:GetObject and wondering why it still gets AccessDenied on KMS-encrypted files.

Do this instead

Also allow kms:Decrypt on that key, in the role's policy and, if needed, in the key policy.

Oops

Thinking changing default encryption re-encrypts existing objects.

Do this instead

It only affects new uploads. Copy existing objects in place, or use S3 Batch Operations, to re-encrypt them.

Your mission

Two keys, one bucket

~30 min

Quick check

A user can read SSE-S3 objects in a bucket but gets AccessDenied for SSE-KMS objects in the same bucket. Most likely cause?

Go deeper

  1. 1Check the default encryption setting on one of your buckets.
  2. 2Upload an object with SSE-KMS and look at its properties.
  3. 3Enable S3 Bucket Keys and read how they reduce KMS request costs.

More topics at this stop

Stuck on this topic? Ask an Insider

Get 1:1 guidance from people who've walked this exact path — on the InsideEdge app.

Download
InsideEdge