Select Language:
If you’re trying to replace your VPC and ECS service without causing any downtime, setting up the new VPC side by side with the old one is a smart move. You can then switch traffic over in one smooth operation using CloudFormation. However, sometimes you’ll run into errors that stop the process, like running out of IP addresses.
Recently, I faced a similar issue where my deployment failed because it reached the maximum number of IP addresses allowed. To fix this, I first requested an increase in the Elastic IP (EIP) quota from 5 to 10. The request was approved quickly, which was great. But even after waiting about 12 hours, the deployment still failed with the same error.
The problem is that increasing the quota doesn’t immediately free up or create new IP addresses — AWS needs time to process the change. In the meantime, the best way to work around this is to:
- Verify the quota increase: Log in to your AWS console, go to EC2, and check your current EIP quota to confirm it was successfully updated.
- Release unused IP addresses: If you have any Elastic IPs not in use, release them to free up addresses.
- Try creating the EIPs again: Once the quota is confirmed, attempt your deployment or resource creation again.
- Reserve IPs beforehand: When possible, allocate all necessary Elastic IPs before starting the deployment to prevent hitting limits mid-process.
- Contact AWS support if issues persist: Sometimes, it just takes a little more time or direct support to fully increase the quotas above the new limit.
By following these steps, you can avoid running into the ‘maximum number of addresses reached’ error and make your deployment process smoother. Remember, quota increases can take some time to fully process, so a bit of patience and planning can save you trouble during critical updates.



