Is there anyway to surpass the elastic IP limit?

I currently have 3 VPCs (production, staging & development) and in those 3 VPCs, I build a single NAT gateway (and Elastic IP) for my private subnets on 3 AZs (so I’d need 9 Elastic IPs in total). However, I’m hitting a limit on the number of elastic IPs, I can have and I’m sort of stuck on how I can put NAT gateways on all of my environments and all of my AZs.

Has anyone hit this issue before? And is there any way to get around it? The only thing I can think of is to just create a single NAT gateway for the 3 AZs but I’m really not a fan of this solution.

Just raise a request to increase the quota

You can request an increase to your limit. Can be done via the service quotas console, or by opening a support case and choosing the Service Limit increase option. Give them your plan as justification and in my experience this will easily be granted.

If you haven’t already, you can always request an increase on your limit.

https://aws.amazon.com/premiumsupport/knowledge-center/ec2-instance-limit/

Otherwise you might want to look into account separation instead of vpc separation of your environments.

Accounts cost nothing. But will add complexity to centralised logging etc

https://aws.amazon.com/solutions/implementations/centralized-logging/

Have you reached out to AWS support to ask them to up your limit?

Service limit increase is 100% the way to go. Its easy you just have to wait a day. This is very common, everyone has multiple eips. They just have these entry level limits in place to try and prevent abuse, but the first thing you do when spinning up an account is request limit increases for the things you know you need, and best to check if you are close as well because the last thing you want is a legit deploy to fail and have to wait on a ticket.

Option 1:

Ask for limit increase. AWS might approve your request.

Option 2:

Create a transit gateway in a dedicated VPC with 3 NGW, route the traffic from the other VPCs through the dedicated VPC using transit gateway.

And pay about $200/mo for internet connectivity. Nah

Your staging and development VPC’s shouldn’t be in the same account as production. EIP limit is there for a reason.

Create new AWS accounts using organizations, move your dev and staging out. Don’t make the prod account the main account of the org, it should be a member.

Reference: https://docs.aws.amazon.com/whitepapers/latest/organizing-your-aws-environment/organizing-your-aws-environment.html

A day! I just requested one and AWS Support OKed it and propagated it in 5 minutes…

Nice!

Really depends on the business case. We use them for NAT gateways. Believe it or not a large percentage of the internet is run on archaic architecture and so many non-cloudy setups require IP whitelisting, and while that stinks it is for good reason because they also can’t talk any modern encryption protocols. Not that IP whitelists mean security, but we get hammered from scrapers from all over the world and when you can, it is nice to at least block some bad IPs.

I agree with you a modern app “you shouldn’t need any” is the best approach. it just doesn’t seem to work quite yet, especially since most of our attackers come from AWS IPs that you can’t even identify the origin of. Fun times. Things will eventually settle.

Different accounts for different environments. Also do you really need that extreme high availability for each VPC’s NATGW? If you had legitimate HA or other network concerns 2 would be fine and would save you a bit of cash.

You might be right, I’m very new to networking and kinda just going off AWS best practice

The limits aren’t to stop you putting environments in the same account. You’re right about the other stuff.

Absolutely no reason to do this unless you’re in an organization that needs to limit VPC access on a per user basis.