Sign in

Clean up unused/unattached AWS Elastic IP addresses

There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

This runbook is designed to identify unattached Elastic IPs within all AWS regions and release them. Elastic IPs that are not associated with any instances can accumulate over time and result in unnecessary costs. By using this runbook, you can efficiently release these unattached Elastic IPs, optimizing your resources and reducing expenses

  1. 1

    Filter out all unused/unattached AWS Elastic IP addresses

    There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

    This step involves searching through regions to identify Elastic IPs that are not currently associated with any instances. By iteratively querying each region's EC2 service, the script collects details about unattached Elastic IPs, including their public IP addresses, allocation IDs, and regions.

    1
    1. 1.1

      Release unused/unattached AWS Elastic IP addresses

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

      Once the unattached Elastic IPs are identified, this task releases them from the AWS environment. By using the collected allocation IDs and regions, the script communicates with the EC2 service to release each unattached Elastic IP. This process ensures that these IPs are no longer reserved, contributing to cost savings and resource optimization.

      1.1
    2. 1.2

      List and release all Elastic IPs in all regions

      There was a problem that the LLM was not able to address. Please rephrase your prompt and try again.

      This task is a combination of listing all Elastic IPs and releasing them if they are not associated with any instance all the while looping through all the regions.

      Note:- Even though the script is a one time stop for finding unattached Elastic IPs in all regions it takes relatively higher time to complete the process than the script focused on specified regions as it loops through all the regions.

      1.2