-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathblueprints.tf
37 lines (30 loc) · 1.05 KB
/
blueprints.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
# resource "azurerm_resource_group" "rg" {
# for_each = var.global_config
# name = each.value.name
# location = each.value.location
# }
module "rgs" {
source = "./modules/terraform-azurerm-resourcegroup"
rg_name = var.global_config.rg1.name
rg_location = var.global_config.rg1.location
}
# resource "azurerm_virtual_network" "basevn" {
# name = var.networking_config.network1.name
# location = azurerm_resource_group.rg.location
# resource_group_name = azurerm_resource_group.rg.name
# address_space = var.networking_config.network1.address_prefix
# }
module "vnets" {
source = "./modules/terraform-azurerm-vnet"
networking_config = var.networking_config
resourcegroup = module.rgs.rg_object
}
# resource "azurerm_subnet" "vn_subnet" {
# name = var.networking_config.network1.subnets.subnet1.name
# virtual_network_name = azurerm_virtual_network.basevn.name
# address_prefixes = var.networking_config.network1.subnets.subnet1.prefix
# resource_group_name = azurerm_resource_group.rg.name
# }
output "vnets" {
value = module.vnets
}