title: How to resolve "The maximum number of addresses has been reached" for AWS VPC Elastic IP addresses?
body: <p>I'm working with CDK/CloudFormation and recently started getting this error when attempting to create a new stack:</p>
  <pre><code>The maximum number of addresses has been reached.
  </code></pre>
  <p>Looking in the AWS Management Console, there is a limit of 40 VPC IP addresses and there are exactly 40 in the list - but some of these have neither an Associated Instance ID nor an Association ID set:</p>
  <p><a href="https://i.stack.imgur.com/kF8Nm.png" rel="noreferrer"><img src="https://i.stack.imgur.com/kF8Nm.png" alt="Elastic IP addresses" /></a></p>
  <p>My understanding is the ones that have neither of these set aren't being used for anything so would like to make them usable to get past the error on stack creation. But unsure how to do this - would &quot;Release Elastic IP address&quot; do the trick or do they need to remain in the account but be marked as reusable in some other way?</p>