Skip to content

ECS with IPv6-only

0

On Sept 29, AWS announced IPv6-only support for ECS: https://aws.amazon.com/blogs/containers/amazon-ecs-announces-ipv6-only-support/

Where can I find a Reference Architecture for this?

What are the required dependencies such as ALB, NAT, VPC Endpoints, etc?

For example Private ECR didn't work directly with IPv6 as of 2 months ago, has that changed?

1 Answer
0

AWS announced IPv6-only support for Amazon ECS on September 29, 2025, allowing tasks and services to run exclusively with IPv6 addresses without requiring IPv4.

To implement an IPv6-only architecture for Amazon ECS, you'll need to:

  1. VPC and Subnet Configuration:
  • Add an IPv6 CIDR block to your VPC
  • Create subnets with only IPv6 CIDR blocks
  • Enable "automatically assign IPv6 address to ENIs" and set IPv6-only to true
  1. Networking Components:
  • Configure security groups to allow necessary IPv6 traffic (using ::/0 or specific IPv6 CIDRs)
  • Update Network ACLs to allow IPv6 traffic patterns, including ICMPv6 for Neighbor Discovery
  • Configure route tables to direct IPv6 traffic through internet gateways (for public subnets) or Egress-Only internet gateways (for private subnets)
  1. Load Balancing:
  • IPv6-only ECS services must use dualstack load balancers (ALB or NLB) with IPv6 target groups
  • Create IPv6 target groups with IP as the target type
  1. Communication with IPv4-only Endpoints:
  • Set up DNS64 and NAT64 for network address translation from IPv6 to IPv4
  1. Container Image Access:
  • For Amazon ECR, you must use dualstack image URI endpoints when pulling images from ECR in an IPv6-only configuration

Regarding your specific question about Private ECR: As of the announcement, Amazon ECR still requires dualstack endpoints for container image downloads in IPv6-only subnets. There's no indication this has changed.

Note that Amazon ECS Exec is not supported in an IPv6-only configuration.

For deployment, you can either update an existing service to use IPv6-only subnets or create a parallel IPv6-only service and use blue/green deployments to shift traffic.
Sources
Amazon ECS announces IPv6-only support - AWS
Amazon ECS announces IPv6-only support | Containers
Amazon ECS task networking for Amazon ECS Managed Instances - Amazon Elastic Container Service

answered 10 months ago

AWS
SUPPORT ENGINEER

reviewed 10 months ago

  • Set up DNS64 and NAT64 for network address translation from IPv6 to IPv4

    Then that's not really an ipv6-only deployment since it still relies on an IPv4 nat gateway, which incurs additional costs.

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.