turbot/gcp_insights

Query: sql_database_instance_by_project

Usage

powerpipe query gcp_insights.query.sql_database_instance_by_project

SQL

select
p.title as "Project",
count(i.*) as "total"
from
gcp_sql_database_instance as i,
gcp_project as p
where
p.project_id = i.project
group by
p.title
order by
count(i.*) desc;

Dashboards

The query is used in the dashboards: