mirror of https://github.com/fluxcd/flux2.git
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
44 lines
930 B
HCL
44 lines
930 B
HCL
resource "azurerm_key_vault" "this" {
|
|
name = "kv-credentials-${random_pet.suffix.id}"
|
|
resource_group_name = azurerm_resource_group.this.name
|
|
location = azurerm_resource_group.this.location
|
|
tenant_id = data.azurerm_client_config.current.tenant_id
|
|
sku_name = "standard"
|
|
}
|
|
|
|
resource "azurerm_key_vault_access_policy" "admin" {
|
|
key_vault_id = azurerm_key_vault.this.id
|
|
tenant_id = data.azurerm_client_config.current.tenant_id
|
|
object_id = data.azurerm_client_config.current.object_id
|
|
|
|
key_permissions = [
|
|
"Backup",
|
|
"Create",
|
|
"Decrypt",
|
|
"Delete",
|
|
"Encrypt",
|
|
"Get",
|
|
"Import",
|
|
"List",
|
|
"Purge",
|
|
"Recover",
|
|
"Restore",
|
|
"Sign",
|
|
"UnwrapKey",
|
|
"Update",
|
|
"Verify",
|
|
"WrapKey",
|
|
]
|
|
|
|
secret_permissions = [
|
|
"Backup",
|
|
"Delete",
|
|
"Get",
|
|
"List",
|
|
"Purge",
|
|
"Recover",
|
|
"Restore",
|
|
"Set",
|
|
]
|
|
}
|