- Newest
- Most votes
- Most comments
While the lack of IPv6 support in some AWS services is a limitation, using strategies like NAT Gateways, VPC Endpoints, and IPv6 transition mechanisms can help mitigate the issue. These solutions provide ways to enable communication with AWS services that require IPv4 without incurring additional costs for public IPv4 addresses. Keeping abreast of AWS updates is also crucial to leveraging new IPv6 capabilities as they become available.
Although I dislike that a NAT gateway is required, I did find an officially-supported workaround for this issue:
- Create a NAT gateway, if you don't already have one.
- In the VPC routing table associated with the subnet for that instance, create a route for all traffic to '64:ff9b::/96' that forwards to the NAT gateway.
- Make sure that DNS64 is enabled for the subnet.
Now, when an IPv6-only instance tries to talk to an IPv4-only AWS service, the DNS64 resolver will respond to the AAAA lookup with a special IPv6 address that starts with 64:ff9b, and has the IPv4 address embedded inside of it. This will route to the NAT gateway which will then un-wrap the IPv4 address and forward the request to the appropriate IPv4 endpoint.
answered 2 years ago
Relevant content
asked 3 years ago
- AWS OFFICIALUpdated a year ago

NAT gateways, VPC endpoints, and public IPv4 addresses all add costs. I should be able to communicate between my EC2 instance (which I pay for) and any AWS Service (which I pay for) and not have additional charges just for them to be able to communicate.