AWS › AWS Secrets Manager & Parameter Store
How does automatic secret rotation work in Secrets Manager, and why is it an important security practice?
IntermediateAnswer
Secrets Manager can automatically rotate a secret on a schedule you define by invoking a Lambda function that you provide or that AWS offers as a built in template for common services like RDS, which generates a new credential, updates it on the actual target system such as a database, and then updates the stored secret value, all without requiring any downtime or manual coordination, significantly reducing the security risk associated with credentials that never change over long periods of time.
aws secretsmanager rotate-secret --secret-id db-password --rotation-lambda-arn arn:aws:lambda:us-east-1:123456789012:function:RotateDBSecret --rotation-rules AutomaticallyAfterDays=30Real-world example A company configures automatic thirty day rotation for its production database password through Secrets Manager, ensuring the credential changes regularly without requiring any application downtime or manual coordination between the database and application teams.