Skip to content

Commit

Permalink
fix: update outputs
Browse files Browse the repository at this point in the history
  • Loading branch information
mamrajyadav committed Dec 27, 2023
1 parent ea07736 commit 6dedfc2
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions outputs.tf
Original file line number Diff line number Diff line change
@@ -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"
}

0 comments on commit 6dedfc2

Please sign in to comment.