turbot/gcp_thrifty

GitHub
Loading controls...

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:

steampipe check gcp_thrifty.control.compute_address_unattached

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share gcp_thrifty.control.compute_address_unattached

Plugins & 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,
project
from
gcp_compute_address;

Tags