turbot/gcp_insights

Query: bigquery_datasets_for_kubernetes_cluster

Usage

powerpipe query gcp_insights.query.bigquery_datasets_for_kubernetes_cluster

SQL

select
d.id as dataset_id
from
gcp_kubernetes_cluster c,
gcp_bigquery_dataset d
where
c.resource_usage_export_config -> 'bigqueryDestination' ->> 'datasetId' = d.dataset_id
and d.project = c.project
and c.id = split_part($1, '/', 1);