From 439c3cd73f25ead5fc11a769639fcd4ebd5df054 Mon Sep 17 00:00:00 2001 From: giomella Date: Fri, 6 Dec 2024 10:48:03 +0100 Subject: [PATCH] defined subkey for gps mbd integration tests --- src/domains/ebollo-app/05_subkey.tf | 9 +++++++++ src/domains/ebollo-app/06_keyvault.tf | 8 ++++++++ 2 files changed, 17 insertions(+) diff --git a/src/domains/ebollo-app/05_subkey.tf b/src/domains/ebollo-app/05_subkey.tf index 3c12bbc50..9c924cfdc 100644 --- a/src/domains/ebollo-app/05_subkey.tf +++ b/src/domains/ebollo-app/05_subkey.tf @@ -24,3 +24,12 @@ resource "azurerm_api_management_subscription" "payments_subkey" { allow_tracing = false state = "active" } + +resource "azurerm_api_management_subscription" "gps_mbd_service_integration_test_subkey" { + api_management_name = data.azurerm_api_management.apim.name + resource_group_name = data.azurerm_api_management.apim.resource_group_name + product_id = module.apim_mbd_gps_product.id + display_name = "Subscription GPS MBD Service for Integration Test" + allow_tracing = false + state = "active" +} diff --git a/src/domains/ebollo-app/06_keyvault.tf b/src/domains/ebollo-app/06_keyvault.tf index a4b2defd4..c261edac5 100644 --- a/src/domains/ebollo-app/06_keyvault.tf +++ b/src/domains/ebollo-app/06_keyvault.tf @@ -51,5 +51,13 @@ resource "azurerm_key_vault_secret" "payments_key_subscription_key" { key_vault_id = data.azurerm_key_vault.kv.id } +resource "azurerm_key_vault_secret" "gps_mbd_service_integration_test_subscription_key" { + name = "apikey-integration_test" + value = azurerm_api_management_subscription.gps_mbd_service_integration_test_subkey.primary_key + content_type = "text/plain" + + key_vault_id = data.azurerm_key_vault.kv.id +} +