Since February 1, 2024, AWS started charging for public IPv4 and I have several EC2 instances.
Some instances I can having only public IPv6, for others I need to keep public IPv4. I disabled Elastic IP and type A addresses for one instance for testing. However, when I remove public IPv4 from an instance, it stops accessing IPv4 internet. IPv6 internet works fine, and it still keeps a private IPv4.
From what I understand, I should create a NAT gateway, but I don't see how I can do this without changing the instance's VPC or subnet and for that I need to terminate the instance and create another one, which complicates the process too much.
What is the step-by-step procedure to disable public IPv4 on an instance without breaking anything? What am I missing?