How to pass environment variable file to the action?
Opened this issue · 2 comments
binjiezhao-alcumus commented
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?
LiJell commented
"containerDefinitions": [
...
"environmentFiles": [
{
"value": "arn:aws:s3:::environment.env",
"type": "s3"
}
],
...
]
like above under containerDefinitions
is this what you mean?
binjiezhao-alcumus commented
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.