Skill 2.3.3
Use secret management services to secure sensitive data
Key Concepts
Secrets Manager stores secrets encrypted with KMS, controls access with IAM and resource policies, logs access in CloudTrail and can rotate secrets automatically using a rotation Lambda function, with managed rotation for RDS, Aurora, Redshift and DocumentDB. Applications call GetSecretValue, ideally through a caching client, instead of embedding credentials.
Parameter Store holds configuration and SecureString values in a hierarchy, with a free standard tier but no built-in rotation. CloudFormation can reference both with dynamic references, such as {{resolve:secretsmanager:MySecret:SecretString:password}}, and ECS can inject them into containers as environment variables.