Opscraft
AWS core services · Lesson 6 of 8 · 3 min read

Secrets, parameters and encryption

Secrets Manager SSM Parameter Store
Cost Per secret per month + API calls Standard tier free; advanced paid
Rotation Built-in rotation with Lambda (native for RDS/Aurora/Redshift/DocumentDB) No built-in rotation
Size Up to 64 KB 4 KB standard, 8 KB advanced
Cross-account Resource policies Advanced tier sharing via RAM
Use Credentials that rotate Config values, feature flags, non-rotating secrets (SecureString with KMS)

KMS: customer managed keys with key policies (the key policy is the primary control — IAM alone isn't enough unless the key policy delegates to the account), optional automatic rotation (yearly by default; the period is configurable), grants for services, envelope encryption (data keys encrypt data; KMS encrypts data keys), multi-region keys for DR. CloudTrail logs every key use.

In EKS: External Secrets Operator or the Secrets Store CSI driver with IRSA/Pod Identity to read from Secrets Manager/SSM; envelope encryption of Kubernetes Secrets in etcd with a KMS key.

Enlarge diagramKMS keynever leaves KMSdata keyplain copy usedonce, thendiscardedyour dataencrypted withthe data keystored togetherciphertext +encrypted datakey
Figure 1. Envelope encryption: data is encrypted with a data key, and only that small key is encrypted by KMS. The master key never leaves KMS.
Swipe sideways to see all of it, or tap to open it full screen.