cluster/azure.tf

36 lines
1.2 KiB
Terraform
Raw Normal View History

data "azurerm_client_config" "current" {}
resource "azurerm_resource_group" "forgejo_runners" {
name = "Forgejo-Runners"
location = "West Europe"
}
resource "azurerm_key_vault" "forgejo_runners" {
name = "Forgejo-Runners"
location = azurerm_resource_group.forgejo_runners.location
resource_group_name = azurerm_resource_group.forgejo_runners.name
tenant_id = data.azurerm_client_config.current.tenant_id
soft_delete_retention_days = 30
purge_protection_enabled = false
enable_rbac_authorization = true
sku_name = "standard"
}
resource "azurerm_resource_group" "infrastructure" {
name = "Infrastructure"
location = "West Europe"
}
resource "azurerm_key_vault" "hetzner" {
name = "Hetzner"
location = azurerm_resource_group.infrastructure.location
resource_group_name = azurerm_resource_group.infrastructure.name
tenant_id = data.azurerm_client_config.current.tenant_id
soft_delete_retention_days = 30
purge_protection_enabled = false
enable_rbac_authorization = true
sku_name = "standard"
}