Zero downtime, zero performance risk Zero downtime, potential performance trade-offs Downtime required, potential performance trade-offs
Amazon Web Services imposes a small hourly charge for unassociated Elastic IP (EIP) addresses within your AWS account. To reduce your monthly costs, Cloudthread recommends releasing any EIPs that are no longer needed.
Click the “Category” filter, check “Unused Elastic IPs”, and click OK.
Console Instructions
Note: You’ll have to repeat the below steps for each account and region.
Login to your AWS Management Console and navigate to the VPC dashboard.
From the left-hand menu, select 'Elastic IPs' under the 'Network & Security' section.
Look for the Association ID column.
You may notice some Elastic IP (EIP) addresses that are not currently associated with any running EC2 instances or Elastic Network Interfaces (ENIs). These unattached EIPs can be safely released to reduce unnecessary costs.
Update the AWS region from the navigation bar and repeat the process for other regions to ensure that unassociated Elastic IP (EIP) addresses are identified and released across all regions in your AWS account.
CLI Instructions
Open your terminal or command prompt.
Ensure that you have the AWS CLI installed and configured with the appropriate credentials for your AWS account.
Run the following command to list all the Elastic IPs in your AWS account:
aws ec2 describe-addresses
Examine the output to identify any Elastic IPs that do not have an associated EC2 instance or Elastic Network Interface (ENI). You can check the "InstanceId" and "NetworkInterfaceId" fields in the output to determine if an Elastic IP is attached or unattached.
If an Elastic IP does not have an associated EC2 instance or ENI, it is unattached and can be released. To release an unattached Elastic IP, you can use the following command:
aws ec2 release-address --allocation-id
Replace <ALLOCATION_ID> with the allocation ID of the unattached Elastic IP that you want to release.
Repeat the above steps for other AWS regions, if needed, by updating the region using the --region command parameter value in the AWS CLI commands.
Action
Console Instructions
Login to your AWS Management Console and navigate to the VPC dashboard.
In the left navigation panel, under the Virtual Private Cloud section, choose Elastic IPs.
Look for the Association ID column.
Choose an unlinked Elastic IP address from the list, then click the Actions dropdown menu in the top menu of the dashboard, and choose Release Elastic IP Address.
Review the unattached EIP(s) listed in the Release Address confirmation box, and click the Release button to remove the selected EIP(s) from your AWS account.
To remove any unassociated EIPs in other regions, repeat steps 3-5 after changing the AWS region using the navigation bar.
CLI instructions
Open your terminal or command prompt.
Ensure that you have the AWS CLI installed and configured with the appropriate credentials for your AWS account.
Run the following command to list all the Elastic IPs in your AWS account:
aws ec2 describe-addresses
The output of the command should yield an array containing the metadata of all unassociated Elastic IP addresses (EIPs) in the specified region.
Execute the release-address command with the EIP allocation ID as the identifier in order to delete any unassociated Elastic IPs that are present in the chosen region.