Skip to content

Commit

Permalink
add depends_on
Browse files Browse the repository at this point in the history
  • Loading branch information
badra001 committed Mar 28, 2023
1 parent ad4fb96 commit 53f910e
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions route53-zone-association/vpc/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ resource "aws_route53_zone_association" "peer_zone" {
zone_id = each.key
vpc_id = var.vpc_id
vpc_region = data.aws_region.self.name

depends_on = [aws_route53_vpc_association_authorization.peer_zone]
}
2 changes: 2 additions & 0 deletions route53-zone-association/zone/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,6 @@ resource "aws_route53_zone_association" "self_zone" {
zone_id = each.key
vpc_id = var.vpc_id
vpc_region = data.aws_region.peer.name

depends_on = [aws_route53_vpc_association_authorization.self_zone]
}

0 comments on commit 53f910e

Please sign in to comment.