Skip to content

Commit

Permalink
Merge pull request #17 from NandosUK/eventarc-permissions
Browse files Browse the repository at this point in the history
fix(api): data.google_project.current.number
  • Loading branch information
audronFS authored Sep 14, 2023
2 parents 98250cf + 2442e64 commit 3a8f1ca
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gcp/cloud-run-v2/main.tf
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
data "google_project" "current" {
project_id = var.project_id
}

locals {
cloud_armor_rules = var.cloud_armor.enabled ? yamldecode(file(var.cloud_armor.rules_file_path)) : []
}
Expand Down Expand Up @@ -240,7 +244,7 @@ resource "google_project_iam_binding" "eventarc_pubsub" {
role = "roles/iam.serviceAccountTokenCreator"

members = [
"serviceAccount:service-${var.project_id}@gcp-sa-pubsub.iam.gserviceaccount.com"
"serviceAccount:service-${data.google_project.current.number}@gcp-sa-pubsub.iam.gserviceaccount.com"
]
}

Expand Down

0 comments on commit 3a8f1ca

Please sign in to comment.