FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

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:

Attributes Reference

The following attributes are exported:

Import

Domains can be imported using the domain name, e.g.

terraform import digitalocean_domain.mydomain mytestdomain.com

See the source of this document at Terraform.io