diff --git a/firewall-production.tf b/firewall-production.tf index 097c9c3..505bc8b 100644 --- a/firewall-production.tf +++ b/firewall-production.tf @@ -1,19 +1,3 @@ -#******************************************************************************************** -# Variables - -# Réseau public -variable "public_subnets_cidr" { - type = list(any) - default = ["10.0.0.0/20", "10.0.32.0/20", "10.0.64.0/20"] - description = "Bloc CIDR pour sous-réseau Public" -} - -# Réseau privée -variable "private_subnets_cidr" { - type = list(any) - default = ["10.0.16.0/20", "10.0.48.0/20", "10.0.80.0/20"] - description = "Bloc CIDR pour sous-réseau Privée" - #******************************************************************************************** # @@ -110,12 +94,12 @@ resource "aws_networkfirewall_firewall" "default_firewall" { firewall_policy_arn = aws_networkfirewall_firewall_policy.default_policy.arn vpc_id = aws_vpc.default.id - subnet_mapping { - count = length(var.public_subnets_cidr) - subnet_id = element(aws_subnet.public_subnet.*.id, count.index) - } - subnet_mapping { - count = length(var.private_subnets_cidr) - subnet_id = element(aws_subnet.private_subnet.*.id, count.index) - } +# subnet_mapping { +# count = length(var.public_subnets_cidr) +# subnet_id = element(aws_subnet.public_subnet.*.id, count.index) +# } +# subnet_mapping { +# count = length(var.private_subnets_cidr) +# subnet_id = element(aws_subnet.private_subnet.*.id, count.index) +# } } \ No newline at end of file