Skip to content

Commit

Permalink
fix: there was an error in the for_each
Browse files Browse the repository at this point in the history
  • Loading branch information
gambol99 committed Apr 8, 2024
1 parent cccd572 commit c7c5e24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit c7c5e24

Please sign in to comment.