Control: Unused external IP addresses should be removed
Description
Unattached external IPs cost money and should be released.
Usage
Run the control in your terminal:
powerpipe control run gcp_thrifty.control.compute_address_unattached
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_thrifty.control.compute_address_unattached --share
Steampipe Tables
SQL
select self_link as resource, case when status != 'IN_USE' then 'alarm' else 'ok' end as status, case when status != 'IN_USE' then address || ' not attached.' else address || ' attached.' end as reason , location, projectfrom gcp_compute_address;