cloudflare_record

Provides a Cloudflare record resource.

Example Usage

# Add a record to the domain
resource "cloudflare_record" "foobar" {
    domain = "${var.cloudflare_domain}"
    name = "terraform"
    value = "192.168.0.11"
    type = "A"
    ttl = 3600
}

Argument Reference

The following arguments are supported:

  • domain - (Required) The domain to add the record to
  • name - (Required) The name of the record
  • value - (Required) The value of the record
  • type - (Required) The type of the record
  • ttl - (Optional) The TTL of the record
  • priority - (Optional) The TTL of the record

Attributes Reference

The following attributes are exported:

  • id - The record ID
  • name - The name of the record
  • value - The value of the record
  • type - The type of the record
  • ttl - The ttl of the record
  • priority - The priority of the record
  • hostname - The FQDN of the record