Skip to content

Commit b875a89

Browse files
committed
docs: Update example w/ multi VPC association for r/aws_route53_zone
1 parent 7c3ca59 commit b875a89

File tree

1 file changed

+18
-1
lines changed

1 file changed

+18
-1
lines changed

website/docs/r/route53_zone.html.markdown

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,11 +55,28 @@ resource "aws_route53_record" "dev-ns" {
5555
~> **NOTE:** Private zones require at least one VPC association at all times.
5656

5757
```terraform
58+
resource "aws_vpc" "primary" {
59+
cidr_block = "10.6.0.0/16"
60+
enable_dns_hostnames = true
61+
enable_dns_support = true
62+
}
63+
64+
resource "aws_vpc" "secondary" {
65+
cidr_block = "10.7.0.0/16"
66+
enable_dns_hostnames = true
67+
enable_dns_support = true
68+
}
69+
5870
resource "aws_route53_zone" "private" {
5971
name = "example.com"
6072
6173
vpc {
62-
vpc_id = aws_vpc.example.id
74+
vpc_id = aws_vpc.primary.id
75+
}
76+
77+
# Add multiple `vpc` blocks to associate additional VPCs
78+
vpc {
79+
vpc_id = aws_vpc.secondary.id
6380
}
6481
}
6582
```

0 commit comments

Comments
 (0)