turbot/tailpipe-mod-gcp-cloud-billing-insights

Query: cloud_billing_report_cost_by_service_dashboard_projects_input

Usage

powerpipe query gcp_cloud_billing_insights.query.cloud_billing_report_cost_by_service_dashboard_projects_input

Tailpipe Tables

SQL

with project_ids as (
select
distinct on(project_id)
project_id ||
case
when project_name is not null then ' (' || project_name || ')'
else ''
end as label,
project_id as value
from
gcp_billing_report
order by
label
)
select
'All' as label,
'all' as value
union all
select
label,
value
from
project_ids;