-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoutputs.tf
55 lines (46 loc) · 1.59 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
output "route_table_ids" {
description = "Map of Route Table names to their IDs."
value = { for name, rt in azurerm_route_table.this : name => rt.id }
}
output "subnet_ids_associated_with_route_tables" {
value = local.grouped_by_route_table
description = "The IDs of the subnets associated with each route table"
}
output "subnets_ids" {
value = {
for key, subnet in azurerm_subnet.subnet :
key => subnet.id
}
description = "The ids of the subnets created"
}
output "subnets_names" {
value = {
for index, subnet in azurerm_subnet.subnet :
subnet.id => subnet.name
}
description = "The name of the subnets created"
}
output "vnet_address_space" {
description = "The address space of the newly created vNet"
value = azurerm_virtual_network.vnet.address_space
}
output "vnet_dns_servers" {
value = var.dns_servers == [] ? ["168.63.129.16"] : var.dns_servers
description = "The dns servers of the vnet, if it is using Azure default, this module will return the Azure 'wire' IP as a list of string in the 1st element"
}
output "vnet_id" {
description = "The id of the newly created vNet"
value = azurerm_virtual_network.vnet.id
}
output "vnet_location" {
description = "The location of the newly created vNet"
value = azurerm_virtual_network.vnet.location
}
output "vnet_name" {
description = "The Name of the newly created vNet"
value = azurerm_virtual_network.vnet.name
}
output "vnet_rg_name" {
description = "The resource group name which the VNet is in"
value = azurerm_virtual_network.vnet.resource_group_name
}