Secure the Database Credentials
We will start by creating a secure store for the database credentials
- Start by logging into the AWS Console.
- Search for “Secrets manager.”
- Click “Store a new secret”
- On the Store a new secret page, make the following selections:
- Select secret type: Credentials for RDS database
- User name: admin
- Password: enter the password you chose for your database
- Select the encryption key: leave the defaut key
- Select which RDS database this secret will access: mssql1
- Click “Next”
- On the “Secret name and description” screen give your secret a name and description. Click “Next”
- For “Configure automatic rotation,” leave “Disable automatic rotation” selected and click “Next”
- Finally, review your setting and click “Store” at the bottom of the page.
This page has help samples on how to use the secrets manager from code. However, we will provide that code as it is needed later in this lab.