hunghvu / hungvu.tech

The official repository for hungvu.tech
https://hungvu.tech
3 stars 0 forks source link

Move to IPv6 to save cost #156

Open hunghvu opened 7 months ago

hunghvu commented 7 months ago

https://blog.cloudflare.com/amazon-2bn-ipv4-tax-how-avoid-paying

hunghvu commented 7 months ago

It seems IPv6 is not supported in AWS Native yet. This means the assignment of IPv6 must be done manually via AWS portal, however, functionalities that are implemented with IPv6 can be IaaC.

https://github.com/pulumi/pulumi-awsx/issues/1049

We will rebuild the infrastructure with AWS Classic to provide IPv6 support.

hunghvu commented 7 months ago

MongoDB Atlas does not support IPv6-only clients at the moment, so we have to use a local container instance as a stop-gap solution.

https://feedback.mongodb.com/forums/928699-ui/suggestions/42795821-network-access-ipv6-support

[16:11:03] ERROR (payload): Error: cannot connect to MongoDB. Details: Could not connect to any servers in your MongoDB Atlas cluster. One common reason is that you're trying to access the database from an IP that isn't whitelisted. Make sure your current IP address is on your Atlas cluster's IP whitelist: https://www.mongodb.com/docs/atlas/security-whitelist/