Creates a DNS zone in Yandex.Cloud.
To create a DNS zone my.local.
in Yandex.Cloud folder with id xxx000xxx000xxx000xx
:
module "dns" {
source = "github.com/patsevanton/terraform-yandex-dns.git//.?ref=v1.0.0"
folder_id = "xxx000xxx000xxx000xx"
recordset = [
{
name = "one"
type = "A"
ttl = 600
data = ["10.0.0.1"]
},
{
name = "two"
type = "A"
ttl = 600
data = ["10.0.0.2"]
},
{
name = ""
type = "TXT"
ttl = 600
data = "v=DMARC1;p=none;sp=quarantine; pct=100;rua=mailto:rep@example.com;"
}
]
}
Name | Version |
---|---|
terraform | >= 1.2 |
Name | Version |
---|---|
yandex-cloud | >= 0.85 |
No modules.
Name | Type |
---|---|
yandex_dns_zone | resource |
yandex_dns_recordset | resource |
Name | Description | Type | Required | Default |
---|---|---|---|---|
folder_id | Folder that the DNS belongs to | string |
yes | |
labels | Labels | map(any) |
no | {} |
name | Zone name | string |
yes | |
private_network_id | Private network ID | string |
yes | |
recordset | List of DNS records | list(object({ name = string type = string ttl = string data = list(string) })) |
no | [] |
zone | Zone : example.com. | string |
yes |
Name | Description |
---|---|
id | Local ID of DNS zone |
zone | Local DNS zone name |
record_ids | ID of DNS record |
record_names | Name of DNS record |