Open tbordovsky opened 3 years ago
Hi, The ecs service endpoint currently does not support IPv6 traffic, as your dig command shown. Since supporting this requires service side change and therefore is outside of scope of the ecs agent, I'm transferring the issue to the container roadmap to track.
Thanks FX.
I'm running into this issue now as well. With the upcoming IPv4 pricing changes this would be a good feature to have.
Associated to: https://github.com/aws/containers-roadmap/issues/1340
Summary
The ecs-agent on my container instance can't register with my ECS service because it can't connect over IPv6. I believe this is because the ecs endpoint doesn't support IPv6.
Description
I'm running a dual-stack setup in my private subnet, with private IPv4 addresses and public IPv6 addresses behind an egress-only internet gateway. When the ecs-agent starts, it attempts to register with the ECS service, but it can't connect so it eventually fails. Then my containers can never start.
On the other hand, if I put it in a public subnet it works fine. I assume this is because it can communicate with the ecs endpoint over a public IPv4 address.
Expected Behavior
The ecs-agent should be able to register with an ECS service over an IPv6 connection.
Observed Behavior
The ecs-agent cannot register with an ECS service over an IPv6 connection.
Environment Details
Some things i can confirm from the box.
I'm running Amazon-Linux-2 (ECS-Optimized).
The ecs agent installed and started correctly.
Supporting Log Snippets
Basically this just keeps happening over and over again.
Similar problem with cloudformation cfn-signal.
I can ping google's ipv6 checkpoint from the instance.
But I cannot reach ecs.
Because they don't have a AAAA record.
Nor does cloudformation.
😿