Skip to content

Support for IPv6-only environments (#4659) #4695

New issue

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

Merged
merged 4 commits into from
Aug 12, 2025
Merged

Support for IPv6-only environments (#4659) #4695

merged 4 commits into from
Aug 12, 2025

Conversation

amogh09
Copy link
Contributor

@amogh09 amogh09 commented Jun 27, 2025

Summary

This pull request enables support for IPv6-only container instances and awsvpc tasks. The main changes in this PR are -

  1. Agent now detects IPv6-only container instances by checking their default IPv4 and IPv6 routes. This behavior can be overridden by ECS_INSTANCE_IP_COMPATIBILITY configuration parameter. This parameter can be set to ipv4 or ipv6 to provide Agent information about the instance's IP compatibility and override its auto detection.
  2. Agent will now advertise ecs.capability.ipv6-only capability when registering the instance with ECS. This capability is needed for supporting IPv6-only awsvpc network mode tasks.
  3. ecs-anywhere-install.sh script now supports IPv6-only instances.

As of this PR, IPv6-only support is only available on Linux platform.

When Agent is running in IPv6-only support mode, it will perform necessary actions to ensure that all of its features work as expected using IPv6.

Individual commits in this PR are already reviewed in the PRs below.

  1. IPv6-only capability and config initialization #4659
  2. Fix build for Windows #4716
  3. Make ecs-anywhere-install.sh IPv6-only compatible #4747
  4. Enable ECS_INSTANCE_IP_COMPATIBILITY config parameter  #4752

Testing

I have thoroughly tested IPv6-only support using our functional tests.

New tests cover the changes: yes

Description for the changelog

feature: Support for IPv6-only environments

Additional Information

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

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

Licensing

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

@amogh09 amogh09 force-pushed the feature/ipv6-only branch from 8d0d75a to 55d3f8f Compare August 8, 2025 23:38
@amogh09 amogh09 changed the title IPv6-only capability and config initialization (#4659) Support for IPv6-only environments (#4659) Aug 11, 2025
@amogh09 amogh09 marked this pull request as ready for review August 11, 2025 21:53
@amogh09 amogh09 requested a review from a team as a code owner August 11, 2025 21:53
@amogh09 amogh09 merged commit c9b0d99 into dev Aug 12, 2025
45 of 46 checks passed
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.

6 participants