Skip to main content
Version: v1.11

Alibaba Cloud DNS

Description​

Terraform configuration for Alibaba Cloud DNS.

Specification​

NameDescriptionTypeRequiredDefault
add_recordsWhether to add records to dns. Default to true.boolfalse
createWhether to create a domain. Default to true.boolfalse
create_groupWhether to create a DNS group. Default to false.boolfalse
domain_nameThe name of domain.stringfalse
existing_domain_nameThe name of an existing domain. If set, 'create' will be ignored.stringfalse
existing_group_nameId of the group in which the domain will add. If not supplied, then use default group.stringfalse
group_nameDNS domain's parrent group name, If not set, a default name with prefix 'terraform-dns-group-' will be returned.stringfalse
profile(Deprecated from version 1.5.0) The profile name as set in the shared credentials file. If not set, it will be sourced from the ALICLOUD_PROFILE environment variable.stringfalse
record_list(Deprecated) Use 'records' instead. See Record Schema section below for structure.list(object({ name = string, host_record = string, type = string, ttl = number, value = string, priority = number }))false
recordsList of DNS records. See Record Fields section below for details.list(map(string))false
region(Deprecated from version 1.5.0) The region used to launch this module resources.stringfalse
resource_group_idThe Id of resource group which the DNS belongs.stringfalse
shared_credentials_file(Deprecated from version 1.5.0) This is the path to the shared credentials file. If this is not set and a profile is specified, $HOME/.aliyun/config.json will be used.stringfalse
skip_region_validation(Deprecated from version 1.5.0) Skip static validation of region ID. Used by users of alternative AlibabaCloud-like APIs or users w/ access to regions that are not public (yet).boolfalse
writeConnectionSecretToRefThe secret which the cloud resource connection will be written to.writeConnectionSecretToReffalse

Record Schema​

Records Field​

Each record in the records list can contain the following fields:

FieldTypeRequiredDefaultDescription
rrstringYes-Host record
typestringYes-Record type (A, NS, MX, TXT, CNAME, SRV, AAAA, CAA, REDIRECT_URL, FORWORD_URL)
valuestringYes-Record value
prioritynumberOnly for MX-Priority (1-10)
ttlnumberNo600TTL in seconds
linestringNo'default'Resolution line

Record List Field (Deprecated)​

The deprecated record_list field uses this structure:

list(object({
name = string
host_record = string
type = string
ttl = number
value = string
priority = number
}))

writeConnectionSecretToRef​

NameDescriptionTypeRequiredDefault
nameThe secret name which the cloud resource connection will be written to.stringtrue
namespaceThe secret namespace which the cloud resource connection will be written to.stringfalse