Skip to content

Is there a straightforward way to provide `environmentFiles` to an AWS Batch job?

0

I'm currently using AWS Batch to run various jobs (to take advantage of spot instances, needing less oversight/configuration compared to ECS etc...). Oftentimes these jobs require passing a lot of configuration information in the form of environment variables. I've encountered an 8192 byte size limit for BatchContainerOverride because of too many environment variables (or environment variables which have values that are too long) in the Environment section of the overrides.

I noticed that for ECS and Fargate, it is apparently possible to:

specify the environmentFiles object with a list of Amazon S3 buckets containing your environment variable files. (from: https://docs.aws.amazon.com/AmazonECS/latest/developerguide/use-environment-file.html)

Is there a similarly straightforward way to accomplish this but with AWS Batch?

asked a year ago506 views
1 Answer
1

Sort answer, at this time AWS Batch does not directly support environmentFiles like ECS and Fargate.

answered a year ago
EXPERT
reviewed a year 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.