turbot/steampipe-mod-gcp-compliance

Control: Cloudfunction functions VPC connector should be enabled

Description

It is recommended that Cloudfunction functions VPC connector is enabled.

Usage

Run the control in your terminal:

powerpipe control run gcp_compliance.control.cloudfunction_function_vpc_connector_enabled

Snapshot and share results via Turbot Pipes:

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

SQL

This control uses a named query:

select
self_link resource,
case
when vpc_connector is null or vpc_connector = '' then 'alarm'
else 'ok'
end as status,
case
when vpc_connector is null or vpc_connector = '' then name || ' VPC connector disabled.'
else name || ' VPC connector enabled.'
end as reason
, location as location, project as project
from
gcp_cloudfunctions_function;

Tags