-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
64 lines (55 loc) · 1.71 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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
output "name" {
description = "The name of the virtual network"
value = azurerm_virtual_network.this.name
}
output "resource_group" {
description = "The resource group in which the virtual network is created"
value = azurerm_resource_group.this
}
output "id" {
description = "The ID of the virtual network"
value = azurerm_virtual_network.this.id
}
output "subnets" {
description = "A map of subnet names to their corresponding names, IDs and address prefixes"
value = {
for subnet in azurerm_subnet.this : subnet.name => {
name = subnet.name
id = subnet.id
address_prefixes = subnet.address_prefixes
}
}
}
output "private_dns_zone_list" {
description = "A map of private DNS zone names to their corresponding names and IDs"
value = {
for private_dns_zone in azurerm_private_dns_zone.this : private_dns_zone.name => {
name = private_dns_zone.name
id = private_dns_zone.id
}
}
}
output "all_subnets" {
description = "A list of all subnets created"
value = [for subnet in azurerm_subnet.this : {
name = subnet.name
id = subnet.id
}]
}
output "all_network_security_groups" {
description = "A map of all network security groups created keyed by subnet"
value = { for subnet, nsg in local.all_custom_network_security_groups : subnet => {
name = nsg.name
id = nsg.id
location = nsg.location
} }
}
output "subnets_with_nsg" {
value = local.subnets_with_nsg
}
output "subnets_with_nsg_azure_default" {
value = local.subnets_with_nsg_azure_default
}
output "subnets_with_default_nsg" {
value = local.default_subnets
}