selectel_private_dns_zone_v1
к сведению
Эта инструкция — копия документации Selectel Terraform-провайдера в Terraform Registry.
Creates and manages a private DNS zone and its record sets using public API v1. For more information about private DNS, see the official Selectel documentation.
Example usage
resource "selectel_private_dns_zone_v1" "zone_1" {
region = "ru-1"
project_id = selectel_vpc_project_v2.project_1.id
domain = "example.com."
records {
domain = "sub.example.com."
type = "A"
values = [
"192.168.0.2",
]
}
}
Argument Reference
-
project_id- (Required) Unique identifier of the associated project. Retrieved from the selectel_vpc_project_v2 resource. Learn more about Projects. -
region- (Required) Pool where the DNS zone is located, for example,ru-3. Learn more about available pools in the Availability matrix. -
domain- (Required) DNS zone domain (domain name), must be an FQDN. -
ttl- (Optional) Time to live in seconds for the zone, default value is 3600. -
records- (Optional) List of the zone record sets:domain- (Required) Domain of the record set, must be an FQDN.type- (Required) Record set type. Available types areA,AAAA,MX,TXT,CNAME.ttl- (Optional) Time to live in seconds for the record. If not specifed, zone TTL is used for the record.values- (Required) List of record set values.
Attributes Reference
serial_number- Zone SOA serial number.