Skip to content

Latest commit

 

History

History
130 lines (100 loc) · 2.19 KB

File metadata and controls

130 lines (100 loc) · 2.19 KB

azurerm_dns_zone

back

Index

Terraform

terraform {
  required_providers {
    azurerm = ">= 2.54.0"
  }
}

top

Example Usage

module "azurerm_dns_zone" {
  source = "./modules/azurerm/d/azurerm_dns_zone"

  # name - (required) is a type of string
  name = null
  # resource_group_name - (optional) is a type of string
  resource_group_name = null

  timeouts = [{
    read = null
  }]
}

top

Variables

variable "name" {
  description = "(required)"
  type        = string
}

variable "resource_group_name" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      read = string
    }
  ))
  default = []
}

top

Datasource

data "azurerm_dns_zone" "this" {
  # name - (required) is a type of string
  name = var.name
  # resource_group_name - (optional) is a type of string
  resource_group_name = var.resource_group_name

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # read - (optional) is a type of string
      read = timeouts.value["read"]
    }
  }

}

top

Outputs

output "id" {
  description = "returns a string"
  value       = data.azurerm_dns_zone.this.id
}

output "max_number_of_record_sets" {
  description = "returns a number"
  value       = data.azurerm_dns_zone.this.max_number_of_record_sets
}

output "name_servers" {
  description = "returns a set of string"
  value       = data.azurerm_dns_zone.this.name_servers
}

output "number_of_record_sets" {
  description = "returns a number"
  value       = data.azurerm_dns_zone.this.number_of_record_sets
}

output "resource_group_name" {
  description = "returns a string"
  value       = data.azurerm_dns_zone.this.resource_group_name
}

output "tags" {
  description = "returns a map of string"
  value       = data.azurerm_dns_zone.this.tags
}

output "this" {
  value = azurerm_dns_zone.this
}

top