In this blog, I will discuss, how to create AWS secret for the full stack react web app we deployed in part 1.

Secrets to store in AWS Secret Manager

  1. firebase-service-account
  2. mongodb-credentials
  3. App-config port

 

Steps in creating Secret

  1. Go to Secrets Manager
  2. Click Store a new secret
  3. Choose Other type of secret
  4. Paste the Firebase credentials.json into a  FIREBASE_CREDENTIALS_JSON

  5. Add MongoDB secrets as well

  6. I added my secret name as well

  7. I didn't add lambda function yet to rotate it. Click Next

  8. I copied the javascript snippets then clicked "Store".
  9. Once you created your secrets, copy the arn IAM role

     

How to find the ARN of your secret:

  1. Go to the AWS Console.
  2. Navigate to Secrets Manager.
  3. Click on the name of the secret you just created (e.g., react-blog-secrets).
  4. At the top, you’ll see Secret ARN.