Service cheat sheetsSecurity and identity cheat sheets
AWS Secrets Manager
Store, retrieve and rotate credentials with KMS encryption, staging labels and a deletion recovery window.
Legacy
Short cheat sheet. The full exam treatment is AWS Secrets Manager.
Secrets Manager stores secrets, encrypts them with KMS and rotates them on a schedule. Applications fetch the value at runtime instead of holding it in code. Secrets can replicate to other Regions.
Core facts
| Item | What to remember |
|---|---|
| Rotation | On a schedule or on demand. Managed rotation needs no Lambda. Otherwise a Lambda rotation function does the work. |
| Staging labels | New value gets AWSPENDING. After the test passes it becomes AWSCURRENT and the old one becomes AWSPREVIOUS. |
| Encryption | KMS. Uses the account default key unless you name a customer managed key. |
| Network | Rotation function in a VPC needs a NAT gateway or a Secrets Manager VPC endpoint to reach the service. |
| Replication | Copies the secret and metadata to other Regions. You cannot delete a primary that still has replicas. |
| Access | IAM and resource policies. Tag-based access works. VPC endpoint keeps traffic private. |
| Master and user secrets | A master secret can rotate the user credential so clients keep working during rotation. |
Deletion
| Setting | Value |
|---|---|
| Recovery window | 7 to 30 days. Default 30. |
| During the window | Secret is inaccessible. RestoreSecret cancels the deletion. |
| No recovery | --force-delete-without-recovery deletes immediately and permanently. |
| Detect use | CloudWatch alarm on access attempts during the window. |
Exam signal
"Rotate RDS credentials automatically and fetch them at runtime" is Secrets Manager.
Exam trap
A rotation Lambda inside a VPC with no NAT and no endpoint cannot reach Secrets Manager and rotation fails. A finished delete after the window cannot be undone.