Interview Prep/DevSecOps/Cloud Security, CIS and Compliance

AWS managed keys vs customer managed KMS keys: when does it matter?

IntermediateConceptCloud Security, CIS and Compliance
Answer

AWS managed keys (aws/s3, aws/ebs) are free, auto-rotated, but their key policy cannot be changed, so anyone with service access in the account can decrypt. Customer managed keys let you write the key policy, control grants, enable or disable the key, share across accounts, and see every use in CloudTrail.

Use customer managed keys for regulated data, cross-account access, and when you need "deny decrypt unless role X", which gives a second authorisation layer independent of IAM. Enable automatic rotation (yearly by default, configurable).

All DevSecOps questions Roadmap: Policy as code

More on Cloud Security, CIS and Compliance