Creates a CNAME type DNS record.
resource "dns_cname_record" "foo" {
zone = "example.com."
name = "foo"
cname = "bar.example.com."
ttl = 300
}
cname
(String) The canonical name this record will point to.name
(String) The name of the record. The zone
argument will be appended to this value to create the full record path.zone
(String) DNS zone the record belongs to. It must be an FQDN, that is, include the trailing dot.ttl
(Number) The TTL of the record set. Defaults to 3600
.id
(String) Always set to the fully qualified domain name of the record.Import is supported using the following syntax:
# Import using the FQDN.
terraform import dns_cname_record.foo foo.example.com.