-
Notifications
You must be signed in to change notification settings - Fork 0
/
interpolated-defaults.tf
33 lines (30 loc) · 984 Bytes
/
interpolated-defaults.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
data "azurerm_client_config" "current" {}
locals {
tags = merge(
var.tags,
{
"application" = "pterodactyl",
"environment" = var.env,
}
)
resource_group_name = var.existing_resource_group_name == null ? azurerm_resource_group.new[0].name : data.azurerm_resource_group.existing[0].name
resource_group_location = var.existing_resource_group_name == null ? azurerm_resource_group.new[0].location : data.azurerm_resource_group.existing[0].location
pipeline_kv_policy = [
{
tenant_id = data.azurerm_client_config.current.tenant_id
object_id = data.azurerm_client_config.current.object_id
application_id = null
certificate_permissions = []
key_permissions = []
storage_permissions = []
secret_permissions = [
"Get",
"List",
"Set",
"Delete",
"Purge",
]
}
]
all_kv_policies = setunion(local.pipeline_kv_policy, var.kv_policies)
}