turbot/terraform_gcp_compliance

Query: cloudbuild_workers_use_private_ip

Usage

powerpipe query terraform_gcp_compliance.query.cloudbuild_workers_use_private_ip

Steampipe Tables

SQL

select
address as resource,
case
when (
attributes_std -> 'worker_config' ->> 'no_external_ip'
) = 'true' then 'ok'
else 'alarm'
end as status,
split_part(address, '.', 2) || case
when (
attributes_std -> 'worker_config' ->> 'no_external_ip'
) = 'true' then ' no external IP configured'
else ' external IP configured'
end || '.' reason,
path || ':' || start_line
from
terraform_resource
where
type = 'google_cloudbuild_worker_pool';

Controls

The query is being used by the following controls: