turbot/alicloud_thrifty
Loading controls...

Control: Unattached external IP addresses should be released

Description

Unattached external IPs cost money and should be released.

Usage

Run the control in your terminal:

powerpipe control run alicloud_thrifty.control.vpc_eip_unattached

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run alicloud_thrifty.control.vpc_eip_unattached --share

Steampipe Tables

SQL

select
'acs:vpc:' || region || ':' || account_id || ':' || 'eip/' || allocation_id as resource,
case
when status = 'Available' then 'alarm'
else 'ok'
end as status,
case
when status = 'Available' then ip_address || ' not attached.'
else ip_address || ' is attached.'
end as reason,
account_id,
region
from
alicloud_vpc_eip;

Tags