We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 75db714 commit 483650eCopy full SHA for 483650e
blueprints/cloud-operations/network-dashboard/main.tf
@@ -167,7 +167,13 @@ module "cloud-function" {
167
# Internal only doesn't seem to work with CFv2:
168
ingress_settings = var.cf_version == "V2" ? "ALLOW_ALL" : "ALLOW_INTERNAL_ONLY"
169
170
- trigger_config = {
+ trigger_config = var.cf_version == "V2" ? {
171
+ v2 = {
172
+ event_type = "google.cloud.pubsub.topic.v1.messagePublished"
173
+ pubsub_topic = module.pubsub.topic.id
174
+ # TODO: service_account_email
175
+ }
176
+ } : {
177
v1 = {
178
event = "google.pubsub.topic.publish"
179
resource = module.pubsub.topic.id
0 commit comments