Recipe 2: Storing database credentials using AWS Secrets Manager
You can use the following steps to store database credentials using AWS Secrets Manager:
- To create the secrets, navigate to the AWS Secrets Manager dashboard at https://console.aws.amazon.com/secretsmanager/.
- Select Store a new secret.
- Then, select Credentials for Redshift Cluster.
- Specify the username and password.
- Set
DefaultEncryptionKeyas the encryption key. - Select the Redshift cluster from the list that this secret will access, and click Next.
- Specify the name for the secrets, keep the defaults, and click Next.
- Keep the defaults for the configure automatic rotation, and click Next.
- Review and click Store.
- Capture the secret store ARN.