aws ec2 release-address
Releases the specified Elastic IP address. AWS CLI reference
2 examples 4 options Its page in the AWS CLI reference
Examples
Example 1: To release an Elastic IP address for EC2-Classic
The following release-address example releases an Elastic IP address for use with instances in EC2-Classic.
aws ec2 release-address --public-ip 198.51.100.0Identify--public-ipDeprecated.This command produces no output.
For more information, see Release an Elastic IP address in the Amazon EC2 User Guide.
Example 2: To release an Elastic IP address for EC2-VPC
The following release-address example releases an Elastic IP address for use with instances in a VPC.
aws ec2 release-address --allocation-id eipalloc-64d5890aIdentify--allocation-idThe allocation ID.This command produces no output.
For more information, see Release an Elastic IP address in the Amazon EC2 User Guide.
Options
--allocation-idThe allocation ID.--dry-runChecks whether you have the required permissions for the action, without actually making the request, and provides an error response.--network-border-groupThe set of Availability Zones, Local Zones, or Wavelength Zones from which Amazon Web Services advertises IP addresses.--public-ipDeprecated.