How to Find and Delete Unattached AWS Elastic IP Addresses
Avoid extra costs to your monthly AWS bill. Learn how to find and delete unattached Elastic IP addresses to optimize your billing.
Avoid extra costs to your monthly AWS bill. Learn how to find and delete unattached Elastic IP addresses to optimize your billing.
An Amazon Web Services Elastic IP address is a static public IPv4 address allocated to your EC2 instance that you can reach via the internet. EIP addresses are designed for dynamic cloud computing because they can swiftly remap to another instance if their existing instance fails for whatever reason.
Since Elastic IP addresses might be a critical component of your AWS infrastructure, they are charged at an hourly rate, even if they are not being used with a running instance. You may be charged $0.005 per Elastic IP address not associated with a running instance per hour. So across your infrastructure, if you have 50 unattached Elastic IP addresses associated with your account, you’ll be paying $180/month unnecessarily.
In this guide, we will show you how to find and fix unattached Elastic IP addresses in AWS so you can lower your cloud costs.
Being aware of unattached AWS Elastic IP addresses is crucial. This is especially true if you use EC2 - Classic, an older Amazon elastic compute cloud, which disassociates EIP addresses when their related instance is stopped. You would need to manually release your EIP address from a stopped instance to avoid the AWS enforced hourly charges.
AWS Elastic IP addresses can also become unattached when more than one AWS EIP address is set to be associated with the same EC2 instance.
Here are a couple of methods for finding your unattached AWS Elastic IP addresses:
Using the AWS Management Console:
Using the AWS CLI:
After detecting your unattached EIPs, the next step is to remove or release them. You should do this as soon as possible to avoid as many hourly charges on your monthly AWS bill. You can remove or release them using the same methods from the previous step.
Using the AWS Management Console:
Using the AWS CLI:
By following these steps, you will be able to cut your AWS costs and ensure that you are cleaning up any unattached EIP addresses.
It doesn’t make sense to pay for EIP addresses that you aren’t using, but running through these steps can take time and requires context-switching.
If you want to run this type of check often, there’s a better way to do it.
With Blink, you run a scheduled automation to check for unattached Elastic IP addresses and send a notification to Slack to approve releasing it.
When this automation runs, it executes the following actions:
You can import this automation from the Blink library and customize it however you like. For example, you could add conditional logic to release IPs if they haven’t been manually approved for removal within a set time frame.
In Blink, you can also create automations from scratch to meet your team’s unique needs using the hundreds of drag-and-drop actions available from a wide range of tools.
Get started with Blink today to see how easy automation can be.
Blink is secure, decentralized, and cloud-native. Get modern cloud and security operations today.