Skip to content

Latest commit

 

History

History
111 lines (85 loc) · 1.91 KB

azurestack_dns_zone.md

File metadata and controls

111 lines (85 loc) · 1.91 KB

azurestack_dns_zone

back

Index

Terraform

terraform {
  required_providers {
    azurestack = ">= 0.9.0"
  }
}

top

Example Usage

module "azurestack_dns_zone" {
  source = "./modules/azurestack/r/azurestack_dns_zone"

  # name - (required) is a type of string
  name = null
  # resource_group_name - (required) is a type of string
  resource_group_name = null
  # tags - (optional) is a type of map of string
  tags = {}
}

top

Variables

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

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

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

top

Resource

resource "azurestack_dns_zone" "this" {
  # name - (required) is a type of string
  name = var.name
  # resource_group_name - (required) is a type of string
  resource_group_name = var.resource_group_name
  # tags - (optional) is a type of map of string
  tags = var.tags
}

top

Outputs

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

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

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

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

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

output "this" {
  value = azurestack_dns_zone.this
}

top