diff --git a/main.tf b/main.tf index 532bf5e..fb4beda 100644 --- a/main.tf +++ b/main.tf @@ -124,7 +124,7 @@ resource "aws_route53_zone_association" "self_zone_west" { resource "aws_route53_record" "entry" { name = "*.${local.cluster_domain_name}" - records = [data.aws_lb.lb[0].dns_name] + records = [data.aws_lb.lb.dns_name] ttl = 900 type = "CNAME" zone_id = aws_route53_zone.cluster_domain.zone_id