- Newest
- Most votes
- Most comments
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
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:
- Release any unused Elastic IP addresses in your account for that region.
- Request a quota increase for Elastic IP addresses from AWS Support.
- 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
