Release an Elastic IP address - Amazon Elastic Compute Cloud
Services or capabilities described in Amazon Web Services documentation might vary by Region. To see the differences applicable to the China Regions, see Getting Started with Amazon Web Services in China (PDF).

Release an Elastic IP address

If you no longer need an Elastic IP address, we recommend that you release it. The Elastic IP address to release must not be currently associated with an Amazon resource.

Console
To release an Elastic IP address
  1. Open the Amazon EC2 console at https://console.amazonaws.cn/ec2/.

  2. In the navigation pane, choose Elastic IPs.

  3. Select the Elastic IP address to release and choose Actions, Release Elastic IP addresses.

  4. Choose Release.

Amazon CLI
To release an Elastic IP address

Use the release-address Amazon CLI command.

aws ec2 release-address --allocation-id eipalloc-64d5890a
PowerShell
To release an Elastic IP address

Use the Remove-EC2Address cmdlet.

Remove-EC2Address -AllocationId eipalloc-64d5890a

After you release your Elastic IP address, you might be able to recover. The following rules apply:

  • You can't recover an Elastic IP address if it has been allocated to another Amazon account, or if it will result in your exceeding your Elastic IP address limit.

  • You can't recover tags associated with an Elastic IP address.

Amazon CLI
To recover an Elastic IP address

Use the allocate-address command.

aws ec2 allocate-address \ --domain vpc \ --address 203.0.113.3
PowerShell
To recover an Elastic IP address

Use the New-EC2Address cmdlet.

New-EC2Address ` -Address 203.0.113.3 ` -Domain vpc ` -Region us-east-1