You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Error: Invalid dynamic for_each value
on .terraform/modules/resolver_rule_name/main.tf line 12, in resource "aws_route53_resolver_rule" "r":
12: for_each = lookup(element(local.rules, count.index), "ips", [])
|----------------
| count.index is 1
| local.rules is tuple with 2 elements
Cannot use a null value in for_each.
More information
My guess is that the error is caused by the lack of ips in each rule, which I am not sure why is required in this module (the resource route53_resolver_rule makes this optional). Maybe the author wrote this module with external/on-prem DNS in mind?
The text was updated successfully, but these errors were encountered:
Source code
Error
More information
My guess is that the error is caused by the lack of
ips
in each rule, which I am not sure why is required in this module (the resource route53_resolver_rule makes this optional). Maybe the author wrote this module with external/on-prem DNS in mind?The text was updated successfully, but these errors were encountered: