aws-actions/amazon-ecs-render-task-definition

How to pass environment variable file to the action?

Opened this issue · 2 comments

We need to pass environment variable file stored in S3 to the render action. See this aws doc:
https://docs.aws.amazon.com/AmazonECS/latest/developerguide/taskdef-envfiles.html

How do we do it?

"containerDefinitions": [
      ...
   "environmentFiles": [
          {
            "value": "arn:aws:s3:::environment.env",
            "type": "s3"
          }
        ],
      ...
]

like above under containerDefinitions

is this what you mean?

Yes exactly.
We have an env file for each environment: dev, test etc. Currently this is solved by an extra bash step to replace the file name for env.