From 501a0745950efde365e1291d475e9b1b993ae157 Mon Sep 17 00:00:00 2001 From: Jon Calalang Date: Wed, 17 Jan 2024 19:43:16 -0800 Subject: [PATCH] count on aset --- .../terraform/infrastructure/activeDirectoryInstances.tf | 1 + 1 file changed, 1 insertion(+) diff --git a/services/active-directory/terraform/infrastructure/activeDirectoryInstances.tf b/services/active-directory/terraform/infrastructure/activeDirectoryInstances.tf index bd5d6969..2258b31d 100644 --- a/services/active-directory/terraform/infrastructure/activeDirectoryInstances.tf +++ b/services/active-directory/terraform/infrastructure/activeDirectoryInstances.tf @@ -96,6 +96,7 @@ resource "azurerm_availability_set" "active-directory-instance" { name = "a-set-${random_string.active-directory-random-string[0].result}-${count.index}" location = var.location resource_group_name = azurerm_resource_group.active-directory-resource-group.name + count = sum([var.active-directory-instance-count]) tags = { environment = var.tag_environment