github.com/jmbataller/terraform@v0.6.8-0.20151125192640-b7a12e3a580c/website/source/docs/providers/aws/r/route53_zone_association.html.markdown (about) 1 --- 2 layout: "aws" 3 page_title: "AWS: aws_route53_zone_association" 4 sidebar_current: "docs-aws-resource-route53-zone-association" 5 description: |- 6 Provides a Route53 private Hosted Zone to VPC association resource. 7 --- 8 9 # aws\_route53\_zone\_association 10 11 Provides a Route53 private Hosted Zone to VPC association resource. 12 13 ## Example Usage 14 15 ``` 16 resource "aws_vpc" "primary" { 17 cidr_block = "10.6.0.0/16" 18 enable_dns_hostnames = true 19 enable_dns_support = true 20 } 21 22 resource "aws_vpc" "secondary" { 23 cidr_block = "10.7.0.0/16" 24 enable_dns_hostnames = true 25 enable_dns_support = true 26 } 27 28 resource "aws_route53_zone" "example" { 29 name = "example.com" 30 vpc_id = "${aws_vpc.primary.id}" 31 } 32 33 resource "aws_route53_zone_association" "secondary" { 34 zone_id = "${aws_route53_zone.example.id}" 35 vpc_id = "${aws_vpc.secondary.id}" 36 } 37 ``` 38 39 ## Argument Reference 40 41 The following arguments are supported: 42 43 * `zone_id` - (Required) The private hosted zone to associate. 44 * `vpc_id` - (Required) The VPC to associate with the private hosted zone. 45 * `vpc_region` - (Optional) The VPC's region. Defaults to the region of the AWS provider. 46 47 ## Attributes Reference 48 49 The following attributes are exported: 50 51 * `id` - The calculated unique identifier for the association. 52 * `zone_id` - The ID of the hosted zone for the association. 53 * `vpc_id` - The ID of the VPC for the association. 54 * `vpc_region` - The region in which the VPC identified by `vpc_id` was created.