Expose IPv6 (no IPv4) from AWS – EC2 machine
Hope you read the introduction on the first page since it is important to understand the rationale behind moving from IPv4 to IPv6. Let us create a VPC first since AWS architecture starts from here.
IPv6 changes at VPC
Once you create a VPC, it is mandatory to mention IPv6 CIDR. Classless Inter-Domain Routing (CIDR) is an IP address allocation method that improves data routing efficiency on the internet. Every machine, server, and end-user device that connects to the internet has a unique number, called an IP address, associated with it. You can read about it from AWS docs on CIDR.
IPv6 changes for Subnets
By default, our subnets will come with IPv4 as shown in the image below.
We have to remove IPv4 and add IPv6 from the CIDR range given for the VPC. I have two subnets, Let us edit them one by one. Please see in the screenshot that we have selected No IPv4 CIDR and manually selected IPv6 CIDR block.
Once we remove IPv4 from the subnets, add IPv6 and save, you can see that the IPv4 is coming as blank on the subnets list screen.