Interview Prep/AWS/Observability, Security Services and IaC

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
aws All AWS questions

More on Observability, Security Services and IaC