Skip to content

Conversation

@amogh09
Copy link
Contributor

@amogh09 amogh09 commented May 23, 2025

Summary

This PR makes Agent initialize ECS Client with WithDualStackEnabled option. DualStack usage is enabled on IPv6-only instances and disabled on non-IPv6-only instances.

Testing

I made a code change to temporarily enable AWS SDK logging. Then I observed docker logs of the agent container.

On an IPv6-only instance, the following line was part of SDK logging, verifying that dual-stack ECS endpoint was used.

Host: ecs.us-west-2.api.aws

On a non-IPv6-only instance, the following line was part of SDK logging, verifying that legacy ECS endpoint was used.

Host: ecs.us-west-2.amazonaws.com

New tests cover the changes: no

Description for the changelog

Enhancement: Use dual-stack ECS endpoints if instance is IPv6-only.

Additional Information

Does this PR include breaking model changes? If so, Have you added transformation functions?

No

Does this PR include the addition of new environment variables in the README?

No

Licensing

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@amogh09 amogh09 marked this pull request as ready for review May 27, 2025 17:54
@amogh09 amogh09 requested a review from a team as a code owner May 27, 2025 17:54
@amogh09 amogh09 changed the title Ipv6 only fe ECS Client dual stack endpoint usage May 27, 2025
@amogh09 amogh09 merged commit 1af4e6e into aws:dev May 27, 2025
40 checks passed
xxx0624 pushed a commit to xxx0624/amazon-ecs-agent that referenced this pull request May 28, 2025
timj-hh pushed a commit to timj-hh/amazon-ecs-agent that referenced this pull request Jul 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants