-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy path03-branches-region2.tf
52 lines (46 loc) · 1.46 KB
/
03-branches-region2.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
52
####################################################
# branch3
####################################################
# env
#----------------------------
module "branch3" {
source = "../../modules/base"
resource_group = azurerm_resource_group.rg.name
prefix = trimsuffix(local.branch3_prefix, "-")
location = local.branch3_location
storage_account = module.common.storage_accounts["region2"]
nsg_subnet_map = {
#"${local.branch3_prefix}main" = module.common.nsg_main["region2"].id
#"${local.branch3_prefix}int" = module.common.nsg_main["region2"].id
#"${local.branch3_prefix}ext" = module.common.nsg_nva["region2"].id
}
vnet_config = [
{
address_space = local.branch3_address_space
subnets = local.branch3_subnets
}
]
vm_config = [
{
name = "vm"
subnet = "${local.branch3_prefix}main"
private_ip = local.branch3_vm_addr
custom_data = base64encode(local.vm_startup)
source_image = "ubuntu"
use_vm_extension = true
dns_servers = [local.branch3_dns_addr, ]
delay_creation = "120s"
},
{
name = "dns"
subnet = "${local.branch3_prefix}main"
private_ip = local.branch3_dns_addr
custom_data = base64encode(local.branch_unbound_startup)
source_image = "debian"
use_vm_extension = true
}
]
depends_on = [
module.common,
]
}