Skip to content

Commit

Permalink
Change from google_project_iam_binding to google_project_iam_member
Browse files Browse the repository at this point in the history
There are circumstances where additional members may need to be added to the binding, so it should be non-authoritative
  • Loading branch information
Nashluffy authored Nov 7, 2023
1 parent 6b46c17 commit 641f48f
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions infra/gcp/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
* * `google_pubsub_topic_iam_binding.binding`
* * `google_service_account.spot_interruption_`
* * `google_service_account_iam_binding.workload_identity_user`
* * `google_project_iam_binding.pubsub_subscriber`
* * `google_project_iam_member.pubsub_subscriber`
**/

locals {
Expand Down Expand Up @@ -89,11 +89,11 @@ resource "google_service_account_iam_binding" "workload_identity_user" {
]
}

resource "google_project_iam_binding" "pubsub_subscriber" {
resource "google_project_iam_member" "pubsub_subscriber" {
project = var.project
role = "roles/pubsub.subscriber"

members = [
google_service_account.spot_interruption_exporter.member,
]
}
}

0 comments on commit 641f48f

Please sign in to comment.