fix broken example (#201)

This commit is contained in:
lonegunmanb 2023-03-21 20:01:05 +08:00 committed by GitHub
parent 0806bf1677
commit e6e6068127
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -21,7 +21,7 @@ resource "azurerm_key_vault" "example" {
soft_delete_retention_days = 7 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 key_vault_id = azurerm_key_vault.example.id
tenant_id = data.azurerm_client_config.current.tenant_id tenant_id = data.azurerm_client_config.current.tenant_id
object_id = local.current_user_object_id object_id = local.current_user_object_id
@ -31,6 +31,7 @@ resource "azurerm_key_vault_access_policy" "service-principal" {
"Delete", "Delete",
"Get", "Get",
"Update", "Update",
"GetRotationPolicy",
] ]
secret_permissions = [ secret_permissions = [
@ -56,7 +57,7 @@ resource "azurerm_key_vault_key" "example" {
] ]
depends_on = [ depends_on = [
azurerm_key_vault_access_policy.service-principal azurerm_key_vault_access_policy.current_user
] ]
} }