turbot/steampipe-mod-gcp-compliance

Control: Verify all GKE clusters are Private Clusters

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.allow_only_private_cluster

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe control run gcp_compliance.control.allow_only_private_cluster --share

SQL

This control uses a named query:

select
self_link resource,
case
when private_cluster_config is null then 'alarm'
else 'ok'
end as status,
case
when private_cluster_config is null then title || ' private cluster config disabled.'
else title || ' private cluster config enabled.'
end as reason
, location as location, project as project
from
gcp_kubernetes_cluster;

Tags