-
Notifications
You must be signed in to change notification settings - Fork 24
/
outputs.tf
51 lines (42 loc) · 1.37 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
output "resource" {
description = "Subnet resource object."
value = azurerm_subnet.main
}
output "id" {
description = "ID of the created subnet."
value = azurerm_subnet.main.id
}
output "cidrs" {
description = "CIDR list of the created subnets."
value = azurerm_subnet.main.address_prefixes
}
output "cidrs_map" {
description = "Map with names and CIDRs of the created subnets."
value = {
(azurerm_subnet.main.name) = azurerm_subnet.main.address_prefixes
}
}
output "name" {
description = "Name of the created subnet."
value = azurerm_subnet.main.name
}
output "ips" {
description = "The collection of IPs within this subnet."
value = var.cidrs[*]
}
output "nsg_association" {
description = "Subnet network security group association resource object."
value = one(azurerm_subnet_network_security_group_association.main[*])
}
output "nsg_association_id" {
description = "Subnet network security group association ID."
value = one(azurerm_subnet_network_security_group_association.main[*].id)
}
output "rt_association" {
description = "Subnet route table association resource object."
value = one(azurerm_subnet_route_table_association.main[*])
}
output "rt_association_id" {
description = "Subnet route table association ID."
value = one(azurerm_subnet_route_table_association.main[*].id)
}