Create an Amazon Secrets Manager secret with automatic rotation and an Amazon RDS MySQL DB instance with Amazon CloudFormation - Amazon Secrets Manager
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Create an Amazon Secrets Manager secret with automatic rotation and an Amazon RDS MySQL DB instance with Amazon CloudFormation

To create an admin secret for Amazon RDS or Aurora, we recommend you use ManageMasterUserPassword, as shown in the example Create a Secrets Manager secret for a master password in AWS::RDS::DBCluster. Then Amazon RDS creates the secret and manages rotation for you. For more information, see Managed rotation.