Skip to content

Commit

Permalink
fix access policy
Browse files Browse the repository at this point in the history
  • Loading branch information
kahlstrm committed Nov 7, 2023
1 parent 5683d4b commit 4b7d26f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/keyvault/main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ resource "azurerm_key_vault" "keyvault" {


}
data "azuread_application" "CI_app_registration" {
data "azuread_service_principal" "CI_service_principal" {
display_name = "github-action-terraform"
}


resource "azurerm_key_vault_access_policy" "CI" {
key_vault_id = azurerm_key_vault.keyvault.id
tenant_id = data.azurerm_client_config.current.tenant_id
object_id = data.azuread_application.CI_app_registration.id
object_id = data.azuread_service_principal.CI_service_principal.id

key_permissions = [
"Get",
Expand Down

0 comments on commit 4b7d26f

Please sign in to comment.