From 89594c32d2862f351d2fc6d8bc745e51085ea301 Mon Sep 17 00:00:00 2001 From: Hubert Cornet Date: Thu, 7 Aug 2025 16:41:46 +0200 Subject: [PATCH] Actualiser firewall-production.tf --- firewall-production.tf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/firewall-production.tf b/firewall-production.tf index bd0bb04..c9f0f91 100644 --- a/firewall-production.tf +++ b/firewall-production.tf @@ -94,10 +94,10 @@ resource "aws_networkfirewall_firewall" "default_firewall" { vpc_id = aws_vpc.default.id subnet_mapping { count = length(var.public_subnets_cidr) - subnet_id = element(var.public_subnets_cidr, count.index) + subnet_id = element(aws_subnet.public_subnet.*.id, count.index) } subnet_mapping { count = length(var.private_subnets_cidr) - subnet_id = element(var.private_subnets_cidr, count.index) + subnet_id = element(aws_subnet.private_subnet.*.id, count.index) } } \ No newline at end of file