github.com/turtlemonvh/terraform@v0.6.9-0.20151204001754-8e40b6b855e8/website/source/docs/providers/do/r/domain.html.markdown (about)

     1  ---
     2  layout: "digitalocean"
     3  page_title: "DigitalOcean: digitalocean_domain"
     4  sidebar_current: "docs-do-resource-domain"
     5  description: |-
     6    Provides a DigitalOcean domain resource.
     7  ---
     8  
     9  # digitalocean\_domain
    10  
    11  Provides a DigitalOcean domain resource.
    12  
    13  ## Example Usage
    14  
    15  ```
    16  # Create a new domain record
    17  resource "digitalocean_domain" "default" {
    18      name = "www.example.com"
    19      ip_address = "${digitalocean_droplet.foo.ipv4_address}"
    20  }
    21  ```
    22  
    23  ## Argument Reference
    24  
    25  The following arguments are supported:
    26  
    27  * `name` - (Required) The name of the domain
    28  * `ip_address` - (Required) The IP address of the domain. This IP
    29     is used to created an initial A record for the domain. It is required
    30     upstream by the DigitalOcean API.
    31  
    32  ## Attributes Reference
    33  
    34  The following attributes are exported:
    35  
    36  * `id` - The name of the domain
    37