turbot/gcp_labels
GitHub
Loading controls...

Control: Compute forwarding rules should be labeled

Description

Check if Compute forwarding rules have at least 1 label.

Usage

Run the control in your terminal:

steampipe check gcp_labels.control.compute_forwarding_rule_unlabeled

Snapshot and share results via Steampipe Cloud:

steampipe login
steampipe check --share gcp_labels.control.compute_forwarding_rule_unlabeled

Plugins & Tables

SQL

select
self_link as resource,
case
when labels is not null then 'ok'
else 'alarm'
end as status,
case
when labels is not null then title || ' has labels.'
else title || ' has no labels.'
end as reason,
location,
project
from
gcp_compute_forwarding_rule