I have a secret stored in AWS Secrets manager. I have a need to grab this secret in Circle and store it as an ENV to be used later in the job passing the secret into the ‘docker build --secret …’
AI is telling me to use something like: ‘export ENV_VAR=aws secretsmanager get-secret-value --secret-id “arn:aws:secretsmanager:…” --output text’
But this is failing with errors like ‘not a valid identifier’
Is this possible? Can someone help me out with the proper syntax for grabbing an aws secret and using it?