Problem scenario
You want to create and save an application-level secret in AWS. What do you do?
Solution
Use Secrets Manager.
Procedures
- Log into the AWS console.
- Go to "Secrets Manager"
- Click "Store a new secret"
- For the secret type choose "Other type of secrets".
- For the left-most field, enter the username. For the right-most field enter the password.
- Choose the encryption key of your choice. Click "Next."
- Enter a "Secret" name. Enter text into any of the optional fields if you want. Click "Next".
- You may want to keep automatic rotation disabled. If you are to use automatic rotation, you have to have a Lambda function created. If you need assistance, see this posting. Click "Next".
- You may or may not want to copy some of the sample code to retrieve the secret in your application.
- Click "Store".