Skip to content

Commit

Permalink
feat: Add perf test key MBD (#2707)
Browse files Browse the repository at this point in the history
feat: 05_subkey.tf and 06_keyvault.tf
  • Loading branch information
alessio-cialini authored Jan 8, 2025
1 parent 3f62dd4 commit f55fd0b
Show file tree
Hide file tree
Showing 2 changed files with 19 additions and 0 deletions.
10 changes: 10 additions & 0 deletions src/domains/ebollo-app/05_subkey.tf
Original file line number Diff line number Diff line change
Expand Up @@ -34,3 +34,13 @@ resource "azurerm_api_management_subscription" "gps_mbd_service_integration_test
allow_tracing = false
state = "active"
}

resource "azurerm_api_management_subscription" "mbd_service_integration_test_subkey" {
count = var.env_short != "p" ? 1 : 0
api_management_name = data.azurerm_api_management.apim.name
resource_group_name = data.azurerm_api_management.apim.resource_group_name
product_id = data.azurerm_api_management_product.apim_gps_spontaneous_payments_services_product.id
display_name = "Subscription MBD Service for Integration Test"
allow_tracing = false
state = "active"
}
9 changes: 9 additions & 0 deletions src/domains/ebollo-app/06_keyvault.tf
Original file line number Diff line number Diff line change
Expand Up @@ -59,3 +59,12 @@ resource "azurerm_key_vault_secret" "gps_mbd_service_integration_test_subscripti

key_vault_id = data.azurerm_key_vault.kv.id
}

resource "azurerm_key_vault_secret" "mbd_service_integration_test_subscription_key" {
count = var.env_short != "p" ? 1 : 0
name = "apikey-mbd-integration-test"
value = azurerm_api_management_subscription.mbd_service_integration_test_subkey[0].primary_key
content_type = "text/plain"

key_vault_id = data.azurerm_key_vault.kv.id
}

0 comments on commit f55fd0b

Please sign in to comment.