forked from hmcts/ccd-shared-infrastructure
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmain.tf
More file actions
28 lines (26 loc) · 680 Bytes
/
main.tf
File metadata and controls
28 lines (26 loc) · 680 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
locals {
tags = merge(
var.common_tags,
tomap({
"Team Contact" = var.team_contact
"Destroy Me" = var.destroy_me
})
)
em_tags = merge(
var.common_tags,
tomap({
"Team Contact" = var.em_team_contact
"Destroy Me" = var.em_destroy_me
"application" = "evidence-management"
"managedBy" = "Evidence Management"
"businessArea" = "CFT"
"contactSlackChannel" = var.em_team_contact
})
)
}
// Shared Resource Group
resource "azurerm_resource_group" "rg" {
name = "${var.product}-shared-${var.env}"
location = var.location
tags = local.tags
}