So after lot of struggle I managed to get EC2 to run without any public IPv4 (just with IPv6).
My ISP doesn’t provide IPv6 so I couldn’t even SSH into the server, had to use AWS console to connect to EC2.
Coming to the biggest issue, GitHub doesn’t support IPv6, so forget about cloning your repository and code.
Ok we can bypass that using S3, the AWS CLI needs to be configured with IPv6.
Now when you go to install your package you expect it to work after doing all the hard work.
That will only happen if none of your package/tool gets downloaded from GitHub release or have a dependency which needs to be downloaded from GitHub releases.
I couldn’t install bun or sharp (libvips) because they relied on downloading files from GitHub.
I regretted and switched back to the old AMI with IPv4.
I looked at https://docs.aws.amazon.com/vpc/latest/userguide/aws-ipv6-support.html, saw all the “nope, no IPv6 support” in a bunch of Amazon’s own core services, and decided I’d rather pay the fee for IPs than try to figure out something their billions worth of engineers couldn’t.
It’s hilarious that in all of the brilliance that was the formation of the internet somebody(s) made a fuck up as big as making the base address system only have 4 billion possibilities.
Everyone is a geniius with hindsight? At the time the protocol was designed the number of computers were in hundreds. Years were stored in 2 digits (hence the Y2K problem). Internet was a wildly successful experiment that eacaped the labs.
The fact that GitHub still doesn’t support IPv6 is mind-boggling. I try to use IPv6-only for dev VMs as much as possible and ran into this a couple weeks ago.
Buy why bother really? I mean if this is all to save a few bucks why bother wasting a day. Pick up a shift at mcdonalds and you time would have been better spent.
I kid, but you are right. And we can yell at guthub but aws has been ridiculously slow to support things as well. I mean how long did amazon linux take. Or the most annoying was tls 1.3! March of 2023!?
There are ways around this stuff. And honestly no one should be using ssh anyway to aws so it may be a ploy to get people off. More likely the infrastructure and code involved.