TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

How to migrate off EIP on EC2?

2 pointsby mska9 months ago
Elastic IPs (EIPs) now come with charges, and AWS also limits accounts to a maximum of five by default, with requests for quota increases often being rejected.<p>Currently, to run an EC2 instance under a custom domain, there are two main approaches:<p>A Record (Route53) -&gt; EIP -&gt; EC2: This method uses a paid Elastic IP, which is subject to the strict quota (max 5 by default). It works but becomes costly if managing multiple projects.<p>CName Record (Route53) -&gt; Dynamic IP Service URL (e.g., No-IP) -&gt; EC2’s non-static IP: This involves updating the IP dynamically via a script with each deployment. It&#x27;s more affordable, removes the IP limit, but may cause some downtime during updates.<p>Are there any other options that could be considered? Hosting small-scale projects on AWS has become more difficult and expensive over time. While $5&#x2F;month for Option 1 may seem manageable, costs quickly add up when running 10-20 projects. Even if you&#x27;re willing to pay, the limit on IPs can be restrictive if AWS doesn’t approve an increase in quotas.

2 comments

frx9 months ago
You can use IPv6 behind CloudFront but it is not supported as an origin yet [1]<p>If IPv6 addresses are free while in use like IPv4 used to be, this would be the cheapest option<p>[1] <a href="https:&#x2F;&#x2F;repost.aws&#x2F;questions&#x2F;QUOWEDVURTSxWkSlenuHaS4g&#x2F;cloudfront-support-for-ipv6-origins" rel="nofollow">https:&#x2F;&#x2F;repost.aws&#x2F;questions&#x2F;QUOWEDVURTSxWkSlenuHaS4g&#x2F;cloudf...</a>
re-thc9 months ago
If they&#x27;re all in the same region create a load balancer e.g. ALB and run all the projects through it. It&#x27;s 1 IP for those 10-20 projects.