aws / aws/containers-roadmap

[ECS/EC2] [request]: Support joining ECS cluster without ECS_CLUSTER env var

Open
#1,900 0 comments 2 reactions 0 assignees View on GitHub
ECS Proposed
Dominant language
Shell
Stars
5.4k
Forks
334
PR merge metrics
No merged PRs in 30d

Description

### Community Note

* Please vote on this issue by adding a 👍 [reaction](https://blog.github.com/2016-03-10-add-reactions-to-pull-requests-issues-and-comments/) to the original issue to help the community and maintainers prioritize this request
* Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
* If you are interested in working on this issue or have submitted a pull request, please leave a comment

**Tell us about your request**

Support a way for the ECS agent to read config on startup via ec2 instance tags, metadata, or from s3

**Which service(s) is this request for?**

ECS on EC2

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**

Currently every ECS container instance requires specification of custom userdata in order to join them to the correct ECS cluster. ECS could support a way for the instance to join a cluster without the ECS_CLUSTER env var being specified in userdata. For example, there could be a "reserved" ec2 instance tag that ECS always looks for if it doesn't find ECS_CLUSTER.

**Are you currently working around this issue?**

specifying ECS_CLUSTER in userdata

Contributor guide

Open the contributing guide

Research direction

The request identifies ECS on EC2 and the ECS agent, but names no repository files, tests, or entry points. Begin by locating the agent's startup configuration handling and compare the proposed instance-tag, metadata, and S3 sources; done means an ECS container instance can join the intended cluster without ECS_CLUSTER in userdata.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud, infrastructure
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.