terraform/website/source/docs/providers/do/r/domain.html.markdown

36 lines
762 B
Markdown
Raw Normal View History

2014-07-25 01:16:03 +02:00
---
layout: "digitalocean"
page_title: "DigitalOcean: digitalocean_domain"
sidebar_current: "docs-do-resource-domain"
---
# digitalocean\_domain
Provides a DigitalOcean domain resource.
## Example Usage
```
# Create a new domain record
resource "digitalocean_domain" "default" {
name = "www.example.com"
ip_address = "${digitalocean_droplet.foo.ipv4_address}"
}
```
## Argument Reference
The following arguments are supported:
* `name` - (Required) The name of the domain
2014-07-25 16:23:26 +02:00
* `ip_address` - (Required) The IP address of the domain. This IP
is used to created an initial A record for the domain. It is required
upstream by the DigitalOcean API.
2014-07-25 01:16:03 +02:00
## Attributes Reference
The following attributes are exported:
* `id` - The name of the domain