turbot/steampipe-mod-gcp-insights

Dashboard: GCP Pub/Sub Topic Detail

This dashboard answers the following questions for each topic:

  • How is the topic configured?
  • How is encryption configured?
  • What relationships does the topic have with other resources?
  • What tags are applied?
  • How many subscriptions does the topic have?
  • What are the IAM Roles assigned to the topic?
This dashboard contains 2 cards, 1 graph, 1 input and 4 tables.

Usage

Install the mod:

mkdir dashboards
cd dashboards
powerpipe mod init
powerpipe mod install github.com/turbot/steampipe-mod-gcp-insights

Start the Powerpipe server:

steampipe service start
powerpipe server

Open http://localhost:9033 in your browser and select GCP Pub/Sub Topic Detail dashboard.

You could also snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe dashboard run gcp_insights.dashboard.pubsub_topic_detail --share

Queries

This dashboard uses the the following queries:
select
'Encryption' as label,
case when kms_key_name = '' then 'Disabled' else 'Enabled' end as value,
case when kms_key_name = '' then 'alert' else 'ok' end as type
from
gcp_pubsub_topic
where
project = split_part($1, '/', 6)
and self_link = $1;

Tags