aws / aws/containers-roadmap

[ECS] [request]: Support hostname with awsvpc network mode

Open
#1,480 0 comments 5 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**
As per [documentation for ContainerDefinition](https://docs.aws.amazon.com/AmazonECS/latest/APIReference/API_ContainerDefinition.html) I see note `The hostname parameter is not supported if you are using the awsvpc network mode.`. But I'd like to configure hostname for containers (i.e. mongos, rabbitmq, etc.) with awsvpc network mode

**Which service(s) is this request for?**
ECS (EC2 or Fargate)

**Tell us about the problem you're trying to solve. What are you trying to do, and why is it hard?**
Right now we're using mongos router container as sidecar, and after migration to awsvpc network mode we're facing a lot of instances there. Previously we used bridge network and configured hostname for mongos container, therefore there was 1 instance in Mongo Cloud Manager. After a while we have a lot of instances there and page starts freezing, so we should manually delete all dropped (terminated) instances. We'd like to fix or at least automate it somehow.
![image](https://user-images.githubusercontent.com/2707948/129899929-37bf349a-8f80-4db8-81f5-db712e18f142.png)

**Are you currently working around this issue?**
Yes, on Dev env (we haven't migrated network mode from `bridge` to `awsvpc` on Prod) we're facing this issue.

Contributor guide

Open the contributing guide

Research direction

Start with the linked AWS ContainerDefinition documentation and the ECS awsvpc network-mode limitation described in the request. Determine whether hostname support is feasible for ECS on EC2 and Fargate; done means users can configure a container hostname in awsvpc mode without the current limitation or operational workaround.

Written by the indexing model from the issue text.

Assessment

Tech stack
aws
Domain
cloud
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.