Secrets Manager
Manage sensitive credentials with automatic encryption, rotation, and fine-grained access control across AWS services and applications.
TL;DR Checklist
- [ ] Store all credentials in Secrets Manager (never hardcode)
- [ ] Enable automatic rotation for database credentials
- [ ] Use Lambda for custom rotation logic
- [ ] Encrypt secrets with customer-managed KMS keys
- [ ] Implement resource-based policies for access
- [ ] Monitor secret access via CloudTrail
- [ ] Test rotation procedures before production
- [ ] Use secret tags for organization and access control
- [ ] Enable CloudWatch events for rotation alerts
- [ ] Replicate secrets to secondary regions for DR
When to Use
Use Secrets Manager when:
- Storing database credentials
- Managing API keys and tokens
- Protecting OAuth tokens
- Storing SSH keys
- Managing TLS certificates
- Any sensitive credential management
Purpose and Use Cases
Primary Purpose: Centralized, encrypted credential storage with automatic rotation and fine-grained access control.
Common Use Cases:
- Database Credentials — RDS password rotation
- API Keys — Third-party service authentication
- OAuth Tokens — Automatic refresh and rotation
- SSH Keys — Secure key storage
- TLS Certificates — Certificate management