How to delete an Elastic IP Address in AWS

For those getting the following error when trying to disassociate an Elastic IP address.

"You do not have permission to access the specified resource."

I found that I still had the IP associated with a NAT Gateway. So you would need to delete the NAT, disassociate the IP, then you can release it.


An Elastic IP address is a reserved public IP address that you can assign to any EC2 instance in a particular region, until you choose to release it. To allocate an Elastic IP address to your account in a particular region

AWS Charges you for every EIP you have which is not used (=not associated to any resource)

To release (=delete) an Elastic IP, follow these steps:

  1. Go to the EC2 console
  2. Under the Network & Security tab, choose Elastic IPs
  3. Select the IP address you wish to remove
  4. Click on actions and choose Release Address.

If the option Release Address is greyed out, it means that the IP address you've selected is still associated with a resource. Then you'll need to click on Disassociate Address first.