How does Secrets Manager rotation work?
AdvancedConceptObservability, Security Services and IaC
Answer
A rotation Lambda runs four steps driven by version stages: createSecret (new value as AWSPENDING), setSecret (apply to the database), testSecret (verify), finishSecret (move AWSCURRENT to the new version). Clients fetching AWSCURRENT get the new password. AWS provides templates for RDS, Redshift and DocumentDB, including a alternating users strategy for zero-downtime.
aws secretsmanager rotate-secret --secret-id prod/db --rotation-lambda-arn $FN --rotation-rules AutomaticallyAfterDays=30
More on Observability, Security Services and IaC
How are CloudWatch metrics organized?BeginnerHow do CloudWatch Logs groups, streams and Logs Insights work?BeginnerExplain CloudWatch alarm states and missing data handling.AdvancedWhat is the CloudWatch Embedded Metric Format?AdvancedWhat does EC2 not report to CloudWatch by default?IntermediateWhat does CloudTrail record?Beginner