By using AWS re:Post, you agree to the Terms of Use

Can we let secrets be overridable in AWS Batch?


Right now, I have a general docker container that I'm using for running different types of batch jobs and I'm able to override the command and environment variables for each type of job but there doesn't seem to be the option to override secrets so the secrets I pass to the job (via regular environment variables) are in plaintext.

1 Answers

You can store your secrets in Secrets Manager and retrieve them in your code -

You can pass the ARN to the secret as an environment variable but not the actual secret value

answered 9 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions