Skip to content

Latest commit

 

History

History
24 lines (13 loc) · 1.19 KB

AWS-SecretManager.md

File metadata and controls

24 lines (13 loc) · 1.19 KB

How to Create AWS SecretManager

AWS secretManager allows us to retrieve database credentials, API keys and other secrets using Secret Manager API's. Instead of storing the hardcoded secret values, we can directly fecth it from secret manager API. It also provides us the option to rotate the credentials for configurable number of days.

Let us see the example of mongoDB credentials stored in secretManager.

  1. Select the AWS secret Manager service from AWS console.

  2. Click on Store a new secret button.

  3. It provides various options for the secret Type. It supports credentials for RDS, DocumentDB, Redshift clusters and also other types of secret. Here, we select other types of secret.

  4. In Plaintext store the mongodb credentials. mongodb://USERNAME:[email protected]:27017

  5. Click on Next and then provide the secret name mongodbURI.

  6. Click on Next and you can configure automatic rotation. We will Disable automatic rotation.

  7. Click on Next and you will be taken to review the configuration. Click on the *Store button.

  8. You can see the secret in the list as shown below.

store-secret