Skip to content

Commit

Permalink
Use google_project_iam_member instead of google_project_iam_binding f…
Browse files Browse the repository at this point in the history
…or TFC service account config
  • Loading branch information
samsimpson1 committed Jul 11, 2024
1 parent a3a7fde commit adaa62d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions terraform/deployments/tfc-aws-config/gcp_oidc.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,10 @@ resource "google_service_account" "tfc" {
account_id = "terraform-cloud-${var.govuk_environment}"
}

resource "google_project_iam_binding" "tfc" {
resource "google_project_iam_member" "tfc" {
project = local.google_project
role = "roles/owner"
members = ["serviceAccount:${google_service_account.tfc.email}"]
member = "serviceAccount:${google_service_account.tfc.email}"
}

data "google_iam_policy" "tfc" {
Expand Down

0 comments on commit adaa62d

Please sign in to comment.