FEATURES OPEN SOURCE ABOUT DOCS LOGIN REGISTER

digitalocean_record

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}"
}

# Add a record to the domain
resource "digitalocean_record" "foobar" {
    domain = "${digitalocean_domain.default.name}"
    type = "A"
    name = "foobar"
    value = "192.168.0.11"
}

Argument Reference

The following arguments are supported:

Attributes Reference

The following attributes are exported:


See the source of this document at Terraform.io