File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -49,6 +49,7 @@ No modules.
49
49
| <a name =" output_id " ></a > [ id] ( #output\_ id ) | The ID of the subnet |
50
50
| <a name =" output_name " ></a > [ name] ( #output\_ name ) | The name of the subnet |
51
51
| <a name =" output_nsg_association_id " ></a > [ nsg\_ association\_ id] ( #output\_ nsg\_ association\_ id ) | The ID of the Network Security Group Association |
52
+ | <a name =" name_to_id_map " ></a > [ id] ( #output\_ name\_ to\_ id\_ map ) | Map of Subnet Name to Id |
52
53
<!-- END_TF_DOCS -->
53
54
54
55
## License
Original file line number Diff line number Diff line change @@ -17,3 +17,8 @@ output "nsg_association_id" {
17
17
value = var. nsg_id == " " ? " " : azurerm_subnet_network_security_group_association. this [0 ]. id
18
18
description = " The ID of the Network Security Group Association"
19
19
}
20
+
21
+ output "name_to_id_map" {
22
+ value = { (azurerm_subnet.this.name) = azurerm_subnet.this.id }
23
+ description = " Map of Subnet Name to Id"
24
+ }
You can’t perform that action at this time.
0 commit comments