diff --git a/big-ip/terraform/infrastructure/azureBigipInstances.tf b/big-ip/terraform/infrastructure/azureBigipInstances.tf index 0e2869b0..e349e580 100644 --- a/big-ip/terraform/infrastructure/azureBigipInstances.tf +++ b/big-ip/terraform/infrastructure/azureBigipInstances.tf @@ -171,7 +171,7 @@ resource "azurerm_network_security_group" "big-ip-management-sg" { protocol = "Tcp" source_port_range = "*" destination_port_range = "22" - source_address_prefixes = "[var.allowed_ips]" + source_address_prefixes = var.allowed_ips destination_address_prefix = "*" } security_rule { @@ -182,7 +182,7 @@ resource "azurerm_network_security_group" "big-ip-management-sg" { protocol = "Tcp" source_port_range = "*" destination_port_range = "443" - source_address_prefixes = "[var.allowed_ips]" + source_address_prefixes = var.allowed_ips destination_address_prefix = "*" } security_rule { @@ -221,7 +221,7 @@ resource "azurerm_network_security_group" "big-ip-external-sg" { protocol = "Tcp" source_port_range = "*" destination_port_range = "443" - source_address_prefixes = "[var.allowed_ips]" + source_address_prefixes = var.allowed_ips destination_address_prefix = "*" } tags = { diff --git a/big-ip/terraform/infrastructure/variables.tf b/big-ip/terraform/infrastructure/variables.tf index c21f7c7b..10acdd51 100644 --- a/big-ip/terraform/infrastructure/variables.tf +++ b/big-ip/terraform/infrastructure/variables.tf @@ -1,7 +1,7 @@ # Shared variables variable "allowed_ips" { - type = list(any) + type = string description = "Allowed Client IP addresses for management access" } variable "allowed_github_ips" {