Skip to content

Commit

Permalink
Merge pull request #1389 from alphagov/samsimpson1/gcp-oidc-fix
Browse files Browse the repository at this point in the history
Use google_project_iam_member instead of google_project_iam_binding for TFC service account config
  • Loading branch information
samsimpson1 authored Jul 11, 2024
2 parents a3a7fde + adaa62d commit ffc8568
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 ffc8568

Please sign in to comment.