diff --git a/terraform/integration_tests_api_subscription.tf b/terraform/integration_tests_api_subscription.tf index ab3edfb1..098509e8 100644 --- a/terraform/integration_tests_api_subscription.tf +++ b/terraform/integration_tests_api_subscription.tf @@ -3,9 +3,9 @@ resource "azurerm_api_management_subscription" "integration_tests" { api_management_name = data.azurerm_api_management.platform.name resource_group_name = data.azurerm_api_management.platform.resource_group_name - state = "active" + state = "active" allow_tracing = false - api_id = azurerm_api_management_api.repository_api.id + api_id = split(";", azurerm_api_management_api.repository_api.id)[0] // Strip revision from id when creating subscription display_name = "Integration Tests" } diff --git a/terraform/integration_tests_key_vault_secrets.tf b/terraform/integration_tests_key_vault_secrets.tf index 8a8e0405..12d223ff 100644 --- a/terraform/integration_tests_key_vault_secrets.tf +++ b/terraform/integration_tests_key_vault_secrets.tf @@ -22,7 +22,7 @@ resource "azurerm_key_vault_secret" "integration_test_api_key_primary" { key_vault_id = azurerm_key_vault.kv.id } -resource "azurerm_key_vault_secret" "integration_test_api_key_seondary" { +resource "azurerm_key_vault_secret" "integration_test_api_key_secondary" { name = format("%s-api-key-secondary", azuread_application.integration_tests.display_name) value = azurerm_api_management_subscription.integration_tests.secondary_key key_vault_id = azurerm_key_vault.kv.id