We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Right now with the Task metadata endpoint version 4 API, there is no way to differentiate which Ports are for ipv4/ipv6.
Ports
References: #2870 #3025
We are now getting ipv4 & ipv6 ports when we were previously just getting ipv4.
We are now getting the following when querying the ECS task metadata endpoint:
$ curl http://169.254.170.2/v4/c8739a8c-7d64-44e0-8600-427ca273f031/task | jq
{ ... "Ports": [ { "ContainerPort": 8888, "Protocol": "tcp", "HostPort": 49832 }, { "ContainerPort": 8888, "Protocol": "tcp", "HostPort": 49825 } ], ... }
Note docker inspect will show the HostIp:
$ sudo docker inspect 8507b80d2320
{... "Ports": { "10000/tcp": null, "8888/tcp": [ { "HostIp": "0.0.0.0", "HostPort": "49832" }, { "HostIp": "::", "HostPort": "49825" } ] }, ... }
Ideally I'd love for there to be a way to differentiate these. Can we just expose HostIp such that this:
{ "ContainerPort": 8888, "Protocol": "tcp", "HostPort": 49832 },
Would become:
{ "ContainerPort": 8888, "Protocol": "tcp", "HostPort": 49832, "HostIp": "0.0.0.0" },
This would give API clients the ability to differentiate easily between them.
There is no way to distinguish between the two via the task metadata endpoint v4.
"Version":"Amazon ECS Agent - v1.56.0 (174ace6d)"
Client: Version: 20.10.7
The text was updated successfully, but these errors were encountered:
Hi @vincentjames501,
Thank you for reporting this, we will take a look at this.
Sorry, something went wrong.
Closing this issue as it is addressed in #3112.
No branches or pull requests
Summary
Right now with the Task metadata endpoint version 4 API, there is no way to differentiate which
Ports
are for ipv4/ipv6.References:
#2870
#3025
Description
We are now getting ipv4 & ipv6 ports when we were previously just getting ipv4.
We are now getting the following when querying the ECS task metadata endpoint:
$ curl http://169.254.170.2/v4/c8739a8c-7d64-44e0-8600-427ca273f031/task | jq
Note docker inspect will show the HostIp:
Expected Behavior
Ideally I'd love for there to be a way to differentiate these. Can we just expose HostIp such that this:
Would become:
This would give API clients the ability to differentiate easily between them.
Observed Behavior
There is no way to distinguish between the two via the task metadata endpoint v4.
Environment Details
ECS
Docker
The text was updated successfully, but these errors were encountered: