View a markdown version of this page

AWS Secrets Manager rotation function templates - AWS Secrets Manager

AWS Secrets Manager rotation function templates

AWS Secrets Manager provides a set of rotation function templates that help automate the secure management of credentials for various database systems and services. The templates are ready-to-use Lambda functions that implement best practices for credential rotation, helping you maintain your security posture without manual intervention.

The templates support two primary rotation strategies:

  • Single-user rotation which updates the credentials for a single user.

  • Alternating-users rotation which maintains two separate users to help eliminate downtime during credential changes.

Secrets Manager also provides a generic template that serves as a starting point for any type of secret.

To use the templates, see:

To write your own rotation function, see Write a rotation function.

Amazon RDS and Amazon Aurora

Amazon RDS Db2 single user

Amazon RDS Db2 alternating users

Amazon RDS MariaDB single user

Amazon RDS MariaDB alternating users

Amazon RDS and Amazon Aurora MySQL single user

Amazon RDS and Amazon Aurora MySQL alternating users

Amazon RDS Oracle single user

Amazon RDS Oracle alternating users

Amazon RDS and Amazon Aurora PostgreSQL single user

Amazon RDS and Amazon Aurora PostgreSQL alternating users

Amazon RDS Microsoft SQLServer single user