Control: Ensure Kubernetes Cluster is created with Alias IP ranges enabled
Usage
Run the control in your terminal:
powerpipe control run gcp_compliance.control.enable_alias_ip_ranges
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run gcp_compliance.control.enable_alias_ip_ranges --share
SQL
This control uses a named query:
select self_link resource, case when ip_allocation_policy ->> 'useIpAliases' = 'true' then 'ok' else 'alarm' end as status, case when ip_allocation_policy ->> 'useIpAliases' = 'true' then title || ' Alias IP ranges enabled.' else title || ' alias IP ranges disabled.' end as reason , location as location, project as projectfrom gcp_kubernetes_cluster;