github.com/nicgrayson/terraform@v0.4.3-0.20150415203910-c4de50829380/website/source/docs/providers/aws/r/route53_zone.html.markdown (about)

     1  ---
     2  layout: "aws"
     3  page_title: "AWS: aws_route53_zone"
     4  sidebar_current: "docs-aws-resource-route53-zone"
     5  description: |-
     6    Provides a Route53 Hosted Zone resource.
     7  ---
     8  
     9  # aws\_route53\_zone
    10  
    11  Provides a Route53 Hosted Zone resource.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  resource "aws_route53_zone" "primary" {
    17     name = "example.com"
    18  }
    19  ```
    20  
    21  For use in subdomains, note that you need to create a
    22  `aws_route53_record` of type `NS` as well as the subdomain
    23  zone.
    24  
    25  ```
    26  resource "aws_route53_zone" "main" {
    27    name = "example.com"
    28  }
    29  
    30  resource "aws_route53_zone" "dev" {
    31    name = "dev.example.com"
    32    parent_route53_zone = "${aws_route53_zone.main.zone_id}"
    33  }
    34  
    35  resource "aws_route53_record" "dev-ns" {
    36      zone_id = "${aws_route53_zone.main.zone_id}"
    37      name = "dev.example.com"
    38      type = "NS"
    39      ttl = "30"
    40      records = ["127.0.0.1", "127.0.0.27"]
    41  }
    42  ```
    43  
    44  ## Argument Reference
    45  
    46  The following arguments are supported:
    47  
    48  * `name` - (Required) This is the name of the hosted zone.
    49  
    50  ## Attributes Reference
    51  
    52  The following attributes are exported:
    53  
    54  * `zone_id` - The Hosted Zone ID. This can be referenced by zone records.
    55