Skip to content

Commit

Permalink
Fix blueprints using pubsub
Browse files Browse the repository at this point in the history
  • Loading branch information
juliocc committed Sep 16, 2023
1 parent 415bc14 commit 3618c9e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -55,10 +55,12 @@ module "vpc" {
}

module "pubsub" {
source = "../../../modules/pubsub"
project_id = module.project.project_id
name = var.name
subscriptions = { "${var.name}-default" = null }
source = "../../../modules/pubsub"
project_id = module.project.project_id
name = var.name
subscriptions = {
"${var.name}-default" = {}
}
iam = {
"roles/pubsub.publisher" = [
"serviceAccount:${module.project.service_accounts.robots.cloudasset}"
Expand Down
2 changes: 1 addition & 1 deletion blueprints/cloud-operations/quota-monitoring/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ module "pubsub" {
project_id = module.project.project_id
name = var.name
subscriptions = {
"${var.name}-default" = null
"${var.name}-default" = {}
}
# the Cloud Scheduler robot service account already has pubsub.topics.publish
# at the project level via roles/cloudscheduler.serviceAgent
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ module "pubsub" {
project_id = module.project.project_id
name = var.name
subscriptions = {
"${var.name}-default" = null
"${var.name}-default" = {}
}
# the Cloud Scheduler robot service account already has pubsub.topics.publish
# at the project level via roles/cloudscheduler.serviceAgent
Expand All @@ -74,7 +74,7 @@ module "pubsub_file" {
project_id = module.project.project_id
name = var.name_cffile
subscriptions = {
"${var.name_cffile}-default" = null
"${var.name_cffile}-default" = {}
}
# the Cloud Scheduler robot service account already has pubsub.topics.publish
# at the project level via roles/cloudscheduler.serviceAgent
Expand Down

0 comments on commit 3618c9e

Please sign in to comment.