Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: cluster-wide ENV definitions #193

Open
kylev opened this issue Mar 17, 2016 · 7 comments
Open

Feature request: cluster-wide ENV definitions #193

kylev opened this issue Mar 17, 2016 · 7 comments
Labels
ECS Amazon Elastic Container Service Proposed Community submitted issue

Comments

@kylev
Copy link

kylev commented Mar 17, 2016

Use case: I'm running a mix of ECS, EC2, and AWS resources like RDS and ElastiCache. I have separate staging and production environments on different VPCs. Right now, to convey the connection URL for my ElastiCache redis instance, I have to set an environment variable REDIS_HOST on every single task definition that I create. It's different for staging vs. production, so this means I have to create different tasks for every container in every environment. This is manageable with automation, but also a bit overly complex.

Another use case would be setting RUBY_ENV or RAILS_ENV for every task.

Proposed solution: Add the ability to define env variables per ECS cluster, and have them applied to all containers run within that cluster.

@bobziuchkovski
Copy link

Yes, I would absolutely love to see this as well. I'm in a similar situation using CloudFormation input params and wiring those to ENV vars passed to ECS task definitions. Right now that means 60 env vars duplicated in the CloudFormation template for every task definition. I'm currently trying to think through possible workarounds, but supporting this out of the box would make life much, much simpler.

@JustinAiken
Copy link

👍

2 similar comments
@voxxit
Copy link

voxxit commented May 19, 2016

👍

@hwrdprkns
Copy link

👍

@breath103
Copy link

👍
we're running sidekiq on ECS and this is almost insane thing to update env for every each services, update service version, kill existing task.
especially if you have like 6 services.

@panga
Copy link

panga commented Sep 27, 2016

+1

@abby-fuller abby-fuller transferred this issue from aws/amazon-ecs-agent Mar 6, 2019
@abby-fuller abby-fuller added ECS Amazon Elastic Container Service Proposed Community submitted issue labels Mar 7, 2019
@srrengar
Copy link

srrengar commented Apr 1, 2020

Would this be solved by referencing an environment file? You can reference the file(s) in all task definitions, and update the variable(s) in the file's contents whenever you change the environment

#371

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
ECS Amazon Elastic Container Service Proposed Community submitted issue
Projects
None yet
Development

No branches or pull requests

9 participants