» dyn_record

Provides a Dyn DNS record resource.

» Example Usage

# Add a record to the domain
resource "dyn_record" "foobar" {
  zone  = "${var.dyn_zone}"
  name  = "terraform"
  value = ""
  type  = "A"
  ttl   = 3600

» Argument Reference

The following arguments are supported:

  • name - (Required) The name of the record.
  • type - (Required) The type of the record.
  • value - (Required) The value of the record.
  • zone - (Required) The DNS zone to add the record to.
  • ttl - (Optional) The TTL of the record. Default uses the zone default.

» Attributes Reference

The following attributes are exported:

  • id - The record ID.
  • fqdn - The FQDN of the record, built from the name and the zone.

» Import

Dyn records can be imported using a combination of the type, zone, fdqn, and optionally id.

$terraform import dyn_record.record {type}/{zone}/{fqdn}[/{id}]