Skip to content

Commit

Permalink
fix(core_project_factory): ignore if SA already exists (#910)
Browse files Browse the repository at this point in the history
  • Loading branch information
apeabody authored May 17, 2024
1 parent c86e1f3 commit cfd7f3f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions modules/core_project_factory/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -143,10 +143,11 @@ resource "google_project_default_service_accounts" "default_service_accounts" {
Default Service Account configuration
*****************************************/
resource "google_service_account" "default_service_account" {
count = var.create_project_sa ? 1 : 0
account_id = var.project_sa_name
display_name = "${var.name} Project Service Account"
project = google_project.main.project_id
count = var.create_project_sa ? 1 : 0
account_id = var.project_sa_name
display_name = "${var.name} Project Service Account"
project = google_project.main.project_id
create_ignore_already_exists = true
}

/**************************************************
Expand Down

0 comments on commit cfd7f3f

Please sign in to comment.