Control: Unattached elastic IP addresses (EIPs) should be released
Description
Unattached Elastic IPs are charged by AWS, they should be released.
Usage
Run the control in your terminal:
powerpipe control run aws_thrifty.control.unattached_eips
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_thrifty.control.unattached_eips --share
Steampipe Tables
SQL
select 'arn:' || partition || ':ec2:' || region || ':' || account_id || ':eip/' || allocation_id as resource, case when association_id is null then 'alarm' else 'ok' end as status, case when association_id is null then public_ip || ' has no association.' else public_ip || ' associated with ' || private_ip_address || '.' end as reason, region, account_idfrom aws_vpc_eip;