This commit is contained in:
Sam
2025-09-26 09:36:07 +00:00
parent bdb8e87790
commit 8496c9de14
7 changed files with 97 additions and 3 deletions
+7 -1
View File
@@ -1 +1,7 @@
output "vnet_id" { value = "<placeholder>" }
output "vnet_id" {
value = azurerm_virtual_network.main.id
}
output "subnet_ids" {
value = { for s in azurerm_subnet.subnets : s.name => s.id }
}
+19 -1
View File
@@ -1 +1,19 @@
variable "resource_group_name" { type = string }
variable "resource_group_name" {
description = "Name of the resource group"
type = string
}
variable "location" {
description = "Azure region"
type = string
}
variable "address_space" {
description = "CIDR for the Virtual Network"
type = list(string)
}
variable "subnets" {
description = "Map of subnet names and CIDRs"
type = map(string)
}