Skip to main content

EC2: Release Unused Elastic IPs

Difficulty: Easy

Description

These Elastic IPs are not attached to a running instance, yet AWS still bills them by the hour. Releasing them stops the charge.

Selection Criteria

  • The Elastic IP was billed as idle (not attached to a running instance) for more than 150 of the last 168 hours.

Expected Saving

Releasing an unused Elastic IP eliminates 100% of its cost. AWS charges $0.005/hour per unassociated EIP, regardless of whether it is attached to a stopped instance or completely free.

Scenario

Monthly cost eliminated

1 unused EIP

~$3.60

5 unused EIPs

~$18.00

10 unused EIPs

~$36.00

20 unused EIPs

~$72.00

Operational Impact

  • ⚠️ Releasing an Elastic IP is irreversible. Once released, the IP address is returned to the AWS pool and may be immediately reassigned to another AWS customer.

  • Before releasing, verify that no DNS records, firewall rules, VPN configurations, or client allowlists reference the IP address.

  • For EIPs attached to stopped instances: confirm the instance does not need to be restarted before the IP is released. If the instance is expected to resume, reassociate it with a dynamic IP or allocate a new EIP at that time.

  • No service interruption occurs when releasing an unassociated EIP, as it is not actively routing traffic.

References

Did this answer your question?