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:
type
- (Required) The type of recorddomain
- (Required) The domain to add the record tovalue
- (Optional) The value of the recordname
- (Optional) The name of the recordweight
- (Optional) The weight of the recordport
- (Optional) The port of the recordpriority
- (Optional) The priority of the record
Attributes Reference
The following attributes are exported:
id
- The record IDfqdn
- The FQDN of the record
See the source of this document at Terraform.io