简体   繁体   中英

How to delete an Elastic IP Address in AWS

I can't seem to delete it in AWS, It was not showing any options like delete or disassociate.

AWS is charging me every month for Elastic IP address usage. I'm not even using them.

Please help me, how to remove the EIP address.

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.

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.

if Associate address , Release address , and Disassociate address all are greyed out for you, and you see association id in the details pane, it probably is still assigned to VPC/NAT Gateway or some service. delete that service first, then you'll be able to release the IP.

It was assigned to NAT gateway in my case, which I deleted but still it was not letting me release the IP. I had to delete VPC.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM