Skip to content

Latest commit

 

History

History
124 lines (95 loc) · 2.02 KB

azurerm_virtual_hub.md

File metadata and controls

124 lines (95 loc) · 2.02 KB

azurerm_virtual_hub

back

Index

Terraform

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

top

Example Usage

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

  # name - (required) is a type of string
  name = null
  # resource_group_name - (required) 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 = "(required)"
  type        = string
}

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

top

Datasource

data "azurerm_virtual_hub" "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

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

}

top

Outputs

output "address_prefix" {
  description = "returns a string"
  value       = data.azurerm_virtual_hub.this.address_prefix
}

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

output "location" {
  description = "returns a string"
  value       = data.azurerm_virtual_hub.this.location
}

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

output "virtual_wan_id" {
  description = "returns a string"
  value       = data.azurerm_virtual_hub.this.virtual_wan_id
}

output "this" {
  value = azurerm_virtual_hub.this
}

top