Skip to content

Commit

Permalink
fix: Correct VPC endpoint private DNS resolver for_each key (#1029)
Browse files Browse the repository at this point in the history
  • Loading branch information
bryantbiggs authored Jan 13, 2024
1 parent e476850 commit a837be1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/vpc-endpoints/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,8 @@ resource "aws_vpc_endpoint" "this" {
for_each = try([each.value.dns_options], [])

content {
dns_record_ip_type = try(each.value.dns_options.dns_record_ip_type, null)
private_dns_only_for_inbound_resolver_endpoint = try(each.value.private_dns_only_for_inbound_resolver_endpoint, null)
dns_record_ip_type = try(dns_options.value.dns_options.dns_record_ip_type, null)
private_dns_only_for_inbound_resolver_endpoint = try(dns_options.value.private_dns_only_for_inbound_resolver_endpoint, null)
}
}

Expand Down

0 comments on commit a837be1

Please sign in to comment.