turbot/gcp_insights

Query: pubsub_subscriptions_for_iam_service_account

Usage

powerpipe query gcp_insights.query.pubsub_subscriptions_for_iam_service_account

SQL

select
p.self_link as subscription_id
from
gcp_pubsub_subscription as p,
gcp_service_account as s
where
p.push_config_oidc_token_service_account_email = s.email
and s.name = split_part($1, '/', 1);