0

I have used this format

env:
   secrets-manager:

         DB_PASSWORD: Secret_Name_Env:password

         DB_USERNAME: Secret_Name_Env:username

I want secret name ENV to be dynamic so that I can change the environments accordingly.

Shubham
  • 19
  • 1
  • 7
  • What's wrong with the current code? Your question lacks details and it is unclear. – Marcin Nov 10 '22 at 10:38
  • Does this answer your question https://stackoverflow.com/questions/58216549/how-to-retrieve-secret-manager-data-in-buildspec-yaml ? – Youcef LAIDANI Nov 10 '22 at 10:40
  • @marcin I need to change secret manager name as per the environments like dev,qa ... – Shubham Nov 10 '22 at 10:48
  • @YoucefLaidani in this answer they use parameter store ,but I need to use just secret manager – Shubham Nov 10 '22 at 10:48
  • You can't change that. You have to parse the yaml file yourself before you use it, and do simple find-and-replace on it. – Marcin Nov 10 '22 at 10:55

0 Answers0