-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrg.tf
More file actions
33 lines (31 loc) · 971 Bytes
/
Copy pathrg.tf
File metadata and controls
33 lines (31 loc) · 971 Bytes
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
locals {
resource_groups = {
aca = {
name = "${local.resource_name}_aca_rg"
components = "Azure Container Apps Environment; Azure Container Apps;"
}
network = {
name = "${local.resource_name}_network_rg"
components = "Virtual Network; NSG; Azure Bastion; NAT Gateway"
}
monitor = {
name = "${local.resource_name}_monitor_rg"
components = "Azure Monitor; Azure Log Analytics; Application Insights"
}
vm = {
name = "${local.resource_name}_vm_rg"
components = "Azure Linux Virtual Machine (Zone - ${local.jump_vm_zone == null ? "none" : tostring(local.jump_vm_zone)})"
}
}
}
resource "azurerm_resource_group" "this" {
for_each = local.resource_groups
name = each.value.name
location = local.location
tags = {
Application = var.tags
Components = each.value.components
Environment = local.sdlc_environment
DeployedOn = timestamp()
}
}