Initial commit: add .gitignore and README
This commit is contained in:
27
terraform/modules/azure/networking/outputs.tf
Normal file
27
terraform/modules/azure/networking/outputs.tf
Normal file
@@ -0,0 +1,27 @@
|
||||
# Azure Networking Module Outputs
|
||||
|
||||
output "vnet_id" {
|
||||
description = "Virtual network ID"
|
||||
value = azurerm_virtual_network.main.id
|
||||
}
|
||||
|
||||
output "vnet_name" {
|
||||
description = "Virtual network name"
|
||||
value = azurerm_virtual_network.main.name
|
||||
}
|
||||
|
||||
output "subnet_ids" {
|
||||
description = "Map of subnet names to IDs"
|
||||
value = { for k, v in azurerm_subnet.subnets : k => v.id }
|
||||
}
|
||||
|
||||
output "subnet_names" {
|
||||
description = "Map of subnet names"
|
||||
value = { for k, v in azurerm_subnet.subnets : k => v.name }
|
||||
}
|
||||
|
||||
output "nsg_ids" {
|
||||
description = "Map of NSG names to IDs"
|
||||
value = { for k, v in azurerm_network_security_group.nsgs : k => v.id }
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user