Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add azurerm_key_vault_access_policy to io-p-sign-backoffice-func/staging #986

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/domains/sign/99_main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ terraform {
required_providers {
azurerm = {
source = "hashicorp/azurerm"
version = "<= 3.86.0"
version = "<= 3.95.0"
}
azuread = {
source = "hashicorp/azuread"
Expand Down
12 changes: 11 additions & 1 deletion src/domains/sign/io_sign_backoffice_func.tf
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ resource "azurerm_key_vault_access_policy" "backoffice_func_key_vault_access_pol
}

module "io_sign_backoffice_func_staging_slot" {
source = "github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v7.46.0"
source = "github.com/pagopa/terraform-azurerm-v3.git//function_app_slot?ref=v8.12.2"

name = "staging"
location = azurerm_resource_group.backend_rg.location
Expand Down Expand Up @@ -113,3 +113,13 @@ module "io_sign_backoffice_func_staging_slot" {

tags = var.tags
}

resource "azurerm_key_vault_access_policy" "backoffice_func_staging_key_vault_access_policy" {
key_vault_id = module.key_vault.id
tenant_id = data.azurerm_client_config.current.tenant_id
object_id = module.io_sign_backoffice_func.system_identity_principal

secret_permissions = ["Get"]
storage_permissions = []
certificate_permissions = []
}
Loading