Skip to content

sironite/terraform-azurerm-private_dns_zone

Repository files navigation

Private DNS zones

Changelog Notice Apache V2 License TF Registry

Usage - Module

Private DNS zones

module "private_dns_zone" {
  source  = "sironite/private_dns_zone/azurerm"
  version = "X.Y.Z"

  dns_zone_name       = "example.com"
  resource_group_name = "example-resource-group"
  soa_record_enabled  = false

  tags = {
    Environment = "Production"
  }
}

Providers

Name Version
azurerm n/a

Modules

No modules.

Resources

Name Type
azurerm_private_dns_zone.this resource

Inputs

Name Description Type Required
dns_zone_name The name of the DNS zone. string yes
resource_group_name The name of the resource group in which to create the DNS zone. string yes
soa_record_email The email address of the person responsible for this DNS zone. string no
soa_record_enabled Whether or not to create a SOA record for this DNS zone. bool no
soa_record_expire_time The expire time for this DNS zone. number no
soa_record_minimum_ttl The minimum TTL for records in this DNS zone. number no
soa_record_refresh_time The refresh time for this DNS zone. number no
soa_record_retry_time The retry time for this DNS zone. number no
soa_record_tags A mapping of tags to assign to the SOA record. map(string) no
soa_record_ttl The TTL for this DNS zone. number no
tags A mapping of tags to assign to the resource. map(string) no

Outputs

Name Description
private_dns_zone_id The ID of the private DNS zone.
private_dns_zone_name The name of the private DNS zone.

Related documentation