From c7c5e242cca26c450cf43e723d5effb68929567b Mon Sep 17 00:00:00 2001 From: Rohith Jayawardene Date: Mon, 8 Apr 2024 17:50:44 +0100 Subject: [PATCH] fix: there was an error in the for_each --- main.tf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/main.tf b/main.tf index 91aed82..33bde8c 100644 --- a/main.tf +++ b/main.tf @@ -51,7 +51,7 @@ module "vpc" { ## Associate any resolver rules with the vpc if required resource "aws_route53_resolver_rule_association" "vpc_associations" { - for_each = var.enable_route53_resolver_rules ? local.resolver_rules : {} + for_each = var.enable_route53_resolver_rules ? toset(local.resolver_rules) : null resolver_rule_id = each.value vpc_id = module.vpc.vpc_attributes.id