From 748336f41ece176ce73da4b6aaca78a593aea86f Mon Sep 17 00:00:00 2001 From: Jon Calalang Date: Tue, 11 Jun 2024 14:38:51 -0700 Subject: [PATCH] didnt put the variable in the template for tf --- nginx/terraform/infrastructure/nginxInstances.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nginx/terraform/infrastructure/nginxInstances.tf b/nginx/terraform/infrastructure/nginxInstances.tf index c83430a4..4d07e9fa 100644 --- a/nginx/terraform/infrastructure/nginxInstances.tf +++ b/nginx/terraform/infrastructure/nginxInstances.tf @@ -109,7 +109,7 @@ resource "azurerm_virtual_machine" "nginx-api-gw" { # NGINX API Gateway Instances bootstrapping file data "template_file" "bootstrap-instance-group-api-gw" { - template = templatefile("${path.module}/files/bootstrap-instance-group-api-gw.sh", { nms-hostname = var.nms-hostname }) + template = templatefile("${path.module}/files/bootstrap-instance-group-api-gw.sh", { nginx_one_dataplane_key = var.nginx_one_dataplane_key }) } ## Availability Set @@ -239,7 +239,7 @@ resource "azurerm_virtual_machine" "nginx-instance" { # NGINX Instances bootstrapping file data "template_file" "bootstrap-instance-group-azure-instances" { - template = templatefile("${path.module}/files/bootstrap-instance-group-azure-instances.sh", { nms-hostname = var.nms-hostname }) + template = templatefile("${path.module}/files/bootstrap-instance-group-azure-instances.sh", { nginx_one_dataplane_key = var.nginx_one_dataplane_key }) } ## Availability Set