Skip to content

Commit

Permalink
Apply suggestions from code review
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbabenko authored Aug 19, 2024
1 parent 49960e0 commit 2d15ee4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion modules/zone-cross-account-vpc-association/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,17 @@ resource "aws_route53_vpc_association_authorization" "this" {
for_each = { for k, v in var.zone_vpc_associations : k => v if var.create }

provider = aws.r53_owner

zone_id = each.value.zone_id
vpc_id = each.value.vpc_id
vpc_region = try(each.value.vpc_region, null)
}

resource "aws_route53_zone_association" "this" {
for_each = aws_route53_vpc_association_authorization.this
for_each = aws_route53_vpc_association_authorization.this

provider = aws.vpc_owner

vpc_id = each.value.vpc_id
zone_id = each.value.zone_id
vpc_region = try(each.value.vpc_region, null)
Expand Down

0 comments on commit 2d15ee4

Please sign in to comment.