Skip to content

Commit a837be1

Browse files
authored
fix: Correct VPC endpoint private DNS resolver for_each key (#1029)
1 parent e476850 commit a837be1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/vpc-endpoints/main.tf

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,8 @@ resource "aws_vpc_endpoint" "this" {
3838
for_each = try([each.value.dns_options], [])
3939

4040
content {
41-
dns_record_ip_type = try(each.value.dns_options.dns_record_ip_type, null)
42-
private_dns_only_for_inbound_resolver_endpoint = try(each.value.private_dns_only_for_inbound_resolver_endpoint, null)
41+
dns_record_ip_type = try(dns_options.value.dns_options.dns_record_ip_type, null)
42+
private_dns_only_for_inbound_resolver_endpoint = try(dns_options.value.private_dns_only_for_inbound_resolver_endpoint, null)
4343
}
4444
}
4545

0 commit comments

Comments
 (0)