From afbd7608e89ee83254a79c2509122b59a09b32b2 Mon Sep 17 00:00:00 2001 From: martin-pestoni <77057010+martin-pestoni@users.noreply.github.com> Date: Mon, 11 Sep 2023 15:05:29 -0300 Subject: [PATCH] Add project variable to autoscaler resource --- deployment/terraform-module-knfsd/autoscaler.tf | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/deployment/terraform-module-knfsd/autoscaler.tf b/deployment/terraform-module-knfsd/autoscaler.tf index 4dc9d20..b64a0f0 100644 --- a/deployment/terraform-module-knfsd/autoscaler.tf +++ b/deployment/terraform-module-knfsd/autoscaler.tf @@ -16,6 +16,7 @@ # Autoscaler that scales up the Knfsd cluster depending on the number of NFS Connections resource "google_compute_autoscaler" "knfsd-autoscaler" { + project = var.PROJECT // Count is used here to determine if the autoscaler policy should be created // If var.ENABLE_KNFSD_AUTOSCALING is true then we want 1 autoscaler rule, else 0 @@ -38,4 +39,4 @@ resource "google_compute_autoscaler" "knfsd-autoscaler" { } } -} \ No newline at end of file +}