github.com/bengesoff/terraform@v0.3.1-0.20141018223233-b25a53629922/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 --- 6 7 # digitalocean\_domain 8 9 Provides a DigitalOcean domain resource. 10 11 ## Example Usage 12 13 ``` 14 # Create a new domain record 15 resource "digitalocean_domain" "default" { 16 name = "www.example.com" 17 ip_address = "${digitalocean_droplet.foo.ipv4_address}" 18 } 19 ``` 20 21 ## Argument Reference 22 23 The following arguments are supported: 24 25 * `name` - (Required) The name of the domain 26 * `ip_address` - (Required) The IP address of the domain. This IP 27 is used to created an initial A record for the domain. It is required 28 upstream by the DigitalOcean API. 29 30 ## Attributes Reference 31 32 The following attributes are exported: 33 34 * `id` - The name of the domain 35