Skill 1.3.2

Encrypting data at rest (for example, AWS KMS)

Key Concepts

AWS KMS manages encryption keys in HSMs. Key types: AWS owned (invisible, free), AWS managed (aws/s3, aws/ebs; created for you, rotated yearly, policy cannot be changed) and customer managed (you control the key policy, rotation, enabling and disabling, and cross-account use). KMS uses envelope encryption: services encrypt data with data keys that the KMS key encrypts.

Service specifics: S3 encrypts all new objects with SSE-S3 by default and also supports SSE-KMS (use S3 Bucket Keys to cut KMS request costs), DSSE-KMS (dual-layer) and client-side encryption. EBS encryption can be enabled by default per Region and also encrypts snapshots. RDS encryption must be chosen at creation; to encrypt an existing database, copy a snapshot with encryption and restore. DynamoDB, EFS, SQS, SNS and Kinesis all support KMS keys.

AWS CloudHSM provides dedicated, single-tenant HSMs when you must control the hardware and keys exclusively; a KMS custom key store can use CloudHSM so services still integrate through KMS.