generated from clouddrove/terraform-module-template
-
Notifications
You must be signed in to change notification settings - Fork 1
/
outputs.tf
49 lines (40 loc) · 1.73 KB
/
outputs.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
output "vnet_id" {
value = try(azurerm_virtual_network.vnet[0].id, null)
description = "The id of the newly created vNet"
}
output "vnet_name" {
value = try(azurerm_virtual_network.vnet[0].name, null)
description = "The name of the newly created vNet"
}
output "vnet_location" {
value = try(azurerm_virtual_network.vnet[0].location, null)
description = "The location of the newly created vNet"
}
output "vnet_address_space" {
value = try(azurerm_virtual_network.vnet[0].address_space, null)
description = "The address space of the newly created vNet"
}
output "vnet_guid" {
value = try(azurerm_virtual_network.vnet[0].guid, null)
description = "The GUID of the virtual network."
}
output "vnet_rg_name" {
value = try(azurerm_virtual_network.vnet[0].resource_group_name, null)
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 = try(var.enable_ddos_pp && var.enable ? azurerm_network_ddos_protection_plan.example[0].id : null, null)
description = "The ID of the DDoS Protection Plan"
}
output "network_watcher_id" {
value = try(var.enable && var.enable_network_watcher ? azurerm_network_watcher.flow_log_nw[0].id : null, null)
description = "The ID of the Network Watcher."
}
output "network_watcher_name" {
value = try(var.enable && var.enable_network_watcher ? azurerm_network_watcher.flow_log_nw[0].name : null, null)
description = "The name of Network Watcher deployed."
}
output "ddos_existing_plan_id" {
value = try(azurerm_virtual_network.vnet[0].ddos_protection_plan, null)
description = "The ID of the DDoS Protection Plan"
}