Skip to content

CloudFormation error quota limit EIP

0

I got the message:

2::EIP              | Application/dev****Vpc/PublicSubnet1/EIP (dev****VpcPublicSubnet1*******) Resource handler returned message: "The maximum number of addresses has been reached. (Service: Ec2, Status Code: 400, Request ID: ****)" (RequestToken: ***, HandlerErrorCode: GeneralServiceException)

What kind of resource is ment here?

  • Elastic IP address quota per NAT gateway
  • Private IP address quota per NAT gateway

asked 2 years ago487 views

2 Answers
2
Accepted Answer

The error you are seeing relates to the quota limitations on Elastic IPs or private IPs associated with NAT gateways. To fix it, you can either release unused EIPs or request a quota increase from AWS, and ensure that your architecture is efficient in terms of resource allocation

EXPERT

answered 2 years ago

EXPERT

reviewed 2 years ago

1

The error message you received is referring to the Elastic IP (EIP) address quota for your AWS account, not specifically to NAT gateways.

An Elastic IP address is a static, public IPv4 address designed for dynamic cloud computing. The error suggests that you have reached the maximum number of Elastic IP addresses allowed for your AWS account in that region.

By default, AWS accounts have a soft limit of 5 Elastic IP addresses per region. This limit is in place to help prevent accidental resource creation and associated costs.

The error occurred when CloudFormation was trying to create a new Elastic IP address as part of your stack deployment, likely for use with a resource in your public subnet (given the resource name "PublicSubnet1/EIP").

This is not related to either the Elastic IP address quota per NAT gateway or the Private IP address quota per NAT gateway. It's a more general account-level quota for Elastic IP addresses.

To resolve this issue, you have a few options:

  1. Release any unused Elastic IP addresses in your account for that region.
  2. Request a quota increase for Elastic IP addresses from AWS Support.
  3. Modify your CloudFormation template to use fewer Elastic IP addresses if possible.

Remember, Elastic IP addresses may incur charges when not associated with a running instance, so it's good practice to review and release any that are not needed.
Sources
Troubleshooting CloudFormation - AWS CloudFormation
Understand CloudFormation quotas - AWS CloudFormation

answered 2 years ago

EXPERT

reviewed 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.