From 7f61cf16059a621957fbf3ad43068d94cde74a28 Mon Sep 17 00:00:00 2001 From: Jon Calalang Date: Thu, 11 Jan 2024 09:06:08 -0800 Subject: [PATCH] lost track --- big-ip/terraform/infrastructure/azureBigipInstances.tf | 6 +++--- big-ip/terraform/infrastructure/variables.tf | 4 ++-- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/big-ip/terraform/infrastructure/azureBigipInstances.tf b/big-ip/terraform/infrastructure/azureBigipInstances.tf index 27a37a58..1095f397 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 = tolist([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 = tolist([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 = tolist([var.allowed_ips]) destination_address_prefix = "*" } tags = { diff --git a/big-ip/terraform/infrastructure/variables.tf b/big-ip/terraform/infrastructure/variables.tf index adc9e751..c21f7c7b 100644 --- a/big-ip/terraform/infrastructure/variables.tf +++ b/big-ip/terraform/infrastructure/variables.tf @@ -1,11 +1,11 @@ # Shared variables variable "allowed_ips" { - type = list(string) + type = list(any) description = "Allowed Client IP addresses for management access" } variable "allowed_github_ips" { - type = list(string) + type = list(any) description = "Allowed GitHub action IP addresses for management access" } variable "bigip_ready" {