Skip to content

Commit

Permalink
fix: Add count variable to does not create the resource when value is…
Browse files Browse the repository at this point in the history
… keep (#498)
  • Loading branch information
thiagonache authored Nov 17, 2020
1 parent 5886a4e commit a3deaad
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions modules/core_project_factory/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,7 @@ resource "google_compute_shared_vpc_host_project" "shared_vpc_host" {
}

resource "google_project_default_service_accounts" "default_service_accounts" {
count = upper(var.default_service_account) == "KEEP" ? 0 : 1
action = upper(var.default_service_account)
project = google_project.main.project_id
restore_policy = "REVERT"
Expand Down

0 comments on commit a3deaad

Please sign in to comment.