turbot/oci_thrifty

Control: Unused reserved public IP addresses should be removed

Description

Unattached reserved public IP addresses cost money and should be released.

Usage

Run the control in your terminal:

powerpipe control run oci_thrifty.control.network_public_ip_unattached

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run oci_thrifty.control.network_public_ip_unattached --share

Steampipe Tables

SQL

select
a.id as resource,
case
when a.lifecycle_state = 'AVAILABLE' then 'alarm'
else 'ok'
end as status,
a.display_name || ' in ' || a.lifecycle_state || ' state.' as reason,
a.scope,
coalesce(c.name, 'root') as compartment
from
oci_core_public_ip as a
left join oci_identity_compartment as c on c.id = a.compartment_id;

Tags