"Encrypting the disk is enough." It is a common belief, and it leaves half the job undone. Data spends its life in two states: sitting somewhere, and moving somewhere. A perfectly encrypted database still leaks if the app talks to it, or to its users, over a plain connection that anyone on the path can read.
Two states, two protections
- At rest: data stored on a disk, in a bucket, in a snapshot or a backup. Encryption at rest protects you if the storage itself is copied, stolen or shared by mistake.
- In transit: data crossing a network, between a browser and your load balancer, between your app and a database, or between your code and an AWS API. Encryption in transit protects you from anyone who can watch or tamper with the traffic.
You need both. They protect against different threats, and turning on one does nothing for the other.
Encryption at rest on AWS
- Amazon S3 encrypts every new object by default with S3-managed keys (SSE-S3), and has done so since January 2023. You can choose SSE-KMS instead when you want your own key and an audit trail.
- Amazon EBS volumes are encrypted only if you ask. The easiest fix is the account-level EBS encryption by default setting, per Region, so nobody can forget.
- Amazon RDS and Aurora encryption is chosen when you create the database. You can't simply switch it on later; the usual path is to snapshot, copy the snapshot with encryption, and restore. A common mistake is discovering this the week of an audit.
Behind all of these sit keys from AWS KMS, the Key Management Service. Without access to the key, a copied disk is just noise. The next two episodes cover KMS in detail.
Encryption in transit on AWS
In transit means TLS, the protocol behind the lock in HTTPS. AWS API endpoints require TLS 1.2 or newer, so your SDK and CLI calls to AWS are already encrypted. Your own traffic is your job:
- Serve your site or API over HTTPS with a certificate on the load balancer or CloudFront distribution.
- Use TLS for database connections too; most engines on RDS support forcing it with a parameter.
- Enforce it, don't just allow it. An S3 bucket policy with a
Denyonaws:SecureTransport = falserejects any request that arrives over plain HTTP.
Where AI fits
Prompts and model answers are data, often sensitive data: customer questions, contract text, internal numbers. On Amazon Bedrock, API calls travel over TLS (AWS requires TLS 1.2 and recommends 1.3). The part teams forget is at rest: if you turn on model invocation logging, full prompts and responses are written to CloudWatch Logs or S3. Treat those logs like any other sensitive store: encrypt them with your own KMS key, restrict who can read them, and set a retention period.
Quick recap
- At rest means on disk; in transit means on the wire. You need both.
- S3 encrypts new objects by default; turn on EBS encryption by default and choose encryption when you create RDS databases.
- Use TLS everywhere and enforce it, for example with
aws:SecureTransportin bucket policies. - Prompts are data: if you log them, encrypt the logs with your own key.