-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathlocals.tf
46 lines (41 loc) · 1.15 KB
/
locals.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
locals {
location = "northeurope"
naming = {
rg = "SEY-BASTION-NE-RG01"
bh_1 = "SEY-TERRAFORM-NE-BASTION01"
bh_2 = "SEY-TERRAFORM-NE-BASTION02"
}
bh = [
{
name = local.naming.bh_1
location = local.location
resource_group_name = azurerm_resource_group.rg.name
ip_configuration = {
name = "ipconfig"
subnet_id = azurerm_subnet.subnet1.id
public_ip_address_id = azurerm_public_ip.pip1.id
}
monitoring = [
{
diag_name = "Monitoring"
log_analytics_workspace_id = azurerm_log_analytics_workspace.la.id
categories = {
bastion_audit_logs = false
}
}
]
tags = {}
},
{
name = local.naming.bh_2
location = local.location
resource_group_name = azurerm_resource_group.rg.name
ip_configuration = {
name = "ipconfig"
subnet_id = azurerm_subnet.subnet2.id
public_ip_address_id = azurerm_public_ip.pip2.id
}
tags = {}
}
]
}