fix broken example (#199)

This commit is contained in:
lonegunmanb 2023-03-21 15:29:41 +08:00 committed by GitHub
parent 298c56005b
commit 14b200bbba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -23,7 +23,7 @@ resource "azurerm_key_vault" "example" {
soft_delete_retention_days = 7
}
resource "azurerm_key_vault_access_policy" "service-principal" {
resource "azurerm_key_vault_access_policy" "current_user" {
key_vault_id = azurerm_key_vault.example.id
tenant_id = data.azurerm_client_config.current.tenant_id
object_id = local.current_user_object_id
@ -34,6 +34,7 @@ resource "azurerm_key_vault_access_policy" "service-principal" {
"Get",
"Purge",
"Update",
"GetRotationPolicy",
]
secret_permissions = [
@ -58,7 +59,7 @@ resource "azurerm_key_vault_key" "example" {
"wrapKey",
]
depends_on = [azurerm_key_vault_access_policy.service-principal]
depends_on = [azurerm_key_vault_access_policy.current_user]
}
resource "azurerm_disk_encryption_set" "example" {