Skip to content
This repository has been archived by the owner on Aug 15, 2024. It is now read-only.

Commit

Permalink
Merge pull request #521 from hmcts/remove-kv-access
Browse files Browse the repository at this point in the history
remove KV Policy Access
  • Loading branch information
chris-pateman authored Apr 7, 2022
2 parents 17d9b8e + d2bd350 commit 3c0103a
Showing 1 changed file with 0 additions and 7 deletions.
7 changes: 0 additions & 7 deletions infrastructure/terraform/25-api-management-subscription.tf
Original file line number Diff line number Diff line change
Expand Up @@ -18,13 +18,6 @@ resource "azurerm_api_management_subscription" "hmi_apim_subscription" {
allow_tracing = var.environment == "sbox" || var.environment == "dev" || var.environment == "test" ? true : false
}

resource "azurerm_key_vault_access_policy" "shared_kv_premissions" {
key_vault_id = data.azurerm_key_vault.infra_key_vault.id
tenant_id = data.azurerm_key_vault.infra_key_vault.tenant_id
object_id = azurerm_api_management.hmi_apim.identity[0].principal_id
secret_permissions = var.secret_permissions
}

resource "azurerm_key_vault_secret" "subscription_key" {
name = "${var.prefix}-${var.product}-sub-key"
value = azurerm_api_management_subscription.hmi_apim_subscription.primary_key
Expand Down

0 comments on commit 3c0103a

Please sign in to comment.