Open olhrabar opened 3 years ago
Hello,
i've run into the same problem. Loose the dot at the end of the domain_name definition.
Regards
@astephanh @olhrabar First off, sorry about the delay. I hadn't seen this issue before.
Are you still facing the issue?
Hi, I'm seeing this issue using Terraform 1.7 and module version 0.1.5:
│ Error: Error in function call
│
│ on .terraform/modules/upstream_dns_rules/main.tf line 26, in resource "aws_route53_resolver_rule_association" "ra":
│ 26: index(aws_route53_resolver_rule.r.*.domain_name, lookup(element(local.vpcs_associations, count.index), "domain_name")
│ 27: ))
│ ├────────────────
│ │ while calling index(list, value)
│ │ aws_route53_resolver_rule.r is tuple with 1 element
│ │ count.index is 0
│ │ local.vpcs_associations is tuple with 1 element
│
│ Call to function "index" failed: item not found.
Code snippet:
module "upstream_dns_rules" {
source = "lgallard/route53-resolver-rules/aws"
version = "0.1.5"
resolver_endpoint_id = module.upstream_dns.endpoint_id
rules = [
{
rule_name = "upstream_forwarder"
domain_name = "REDACTED.com."
vpc_ids = [module.vpc.vpc_id]
ips = local.upstream_dns
}
]
}
I am trying to use this module but faced with a problem:
Code
Error: Error in function call
Terraform version: 0.13.5