Resource: yet_cloud_dns_record
One name's values of one type in a zone. The records Cloud keeps for environments are its own; these are the company's.
Example Usage
resource "yet_cloud_dns_record" "mx" {
zone_id = yet_cloud_dns_zone.acme.id
name = "@"
type = "MX"
ttl = 3600
values = ["10 mx1.acme.dev", "20 mx2.acme.dev"]
}Schema
Required
name(String) The name before the zone's:www;@for the zone's root.type(String)A,AAAA,CNAME,MX,TXT,CAA,SRVorNS.values(List of String) Its values: addresses, names, or text.zone_id(String) The zone it is in.
Optional
ttl(Number) How long resolvers keep it, in seconds:300unless set.
Read-Only
fqdn(String) Its full name.id(String) The ID of this resource.
Import
In Terraform v1.5.0 and later, with an import block:
import {
to = yet_cloud_dns_record.mx
id = "01J9Z8K3V7Q2M4N6P8R0S2T4V6/01J9Z8M1A2B3C4D5E6F7G8H9J0"
}With terraform import:
# <zone_id>/<record_id>
terraform import yet_cloud_dns_record.mx 01J9Z8K3V7Q2M4N6P8R0S2T4V6/01J9Z8M1A2B3C4D5E6F7G8H9J0