From 6dedfc2063b4e8b5dbea3e6987f6b84ddf68b78c Mon Sep 17 00:00:00 2001 From: mamrajyadav Date: Wed, 27 Dec 2023 23:37:52 +0530 Subject: [PATCH] fix: update outputs --- outputs.tf | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) diff --git a/outputs.tf b/outputs.tf index 44319aa..11ea313 100644 --- a/outputs.tf +++ b/outputs.tf @@ -1,49 +1,49 @@ output "vnet_id" { - value = azurerm_virtual_network.vnet[*].id + value = azurerm_virtual_network.vnet[0].id description = "The id of the newly created vNet" } output "vnet_name" { - value = azurerm_virtual_network.vnet[*].name + value = azurerm_virtual_network.vnet[0].name description = "The name of the newly created vNet" } output "vnet_location" { - value = azurerm_virtual_network.vnet[*].location + value = azurerm_virtual_network.vnet[0].location description = "The location of the newly created vNet" } output "vnet_address_space" { - value = azurerm_virtual_network.vnet[*].address_space + value = azurerm_virtual_network.vnet[0].address_space description = "The address space of the newly created vNet" } output "vnet_guid" { - value = azurerm_virtual_network.vnet[*].guid + value = azurerm_virtual_network.vnet[0].guid description = "The GUID of the virtual network." } output "vnet_rg_name" { - value = azurerm_virtual_network.vnet[*].resource_group_name + value = azurerm_virtual_network.vnet[0].resource_group_name description = "The name of the resource group in which to create the virtual network. Changing this forces a new resource to be created" } output "ddos_protection_plan_id" { - value = join("", azurerm_network_ddos_protection_plan.example[*].id) + value = var.enable_ddos_pp && var.enable ? azurerm_network_ddos_protection_plan.example[0].id : null description = "The ID of the DDoS Protection Plan" } output "network_watcher_id" { - value = join("", azurerm_network_watcher.flow_log_nw[*].id) + value = var.enable && var.enable_network_watcher ? azurerm_network_watcher.flow_log_nw[0].id : null description = "The ID of the Network Watcher." } output "network_watcher_name" { - value = join("", azurerm_network_watcher.flow_log_nw[*].name) + value = var.enable && var.enable_network_watcher ? azurerm_network_watcher.flow_log_nw[0].name : null description = "The name of Network Watcher deployed." } output "ddos_existing_plan_id" { - value = azurerm_virtual_network.vnet[*].ddos_protection_plan + value = azurerm_virtual_network.vnet[0].ddos_protection_plan description = "The ID of the DDoS Protection Plan" }