-
Go AWS Management Console and open the Amazon Secrets Manager console here then make sure you choose the same AWS Region as that of the MySQL database
-
In the navigation pane, choose Secrets then Store a new secret on the top-right of the Secrets table to open the below page:
AWS Secrets Manager console : store a new secret
-
Secret type : Credentials for Amazon RDS database
-
Username : whatever
-
Password : whatever
For steps 4 and 5, use the same username and password as the database.
-
Database : choose product_management DB instance and click Next
-
Secret name : rds-credential/dev, leave default options and click Next
-
Leave all the default options again and click Next to go to the Review page.
-
Click Store
-
Optional: AWS Access Key and Secret Key can also be accessed from Secrets Manager using Other General Type