From f469451055e8d69af961a169674aa6048d56fa0a Mon Sep 17 00:00:00 2001 From: Russell Day Date: Tue, 23 Apr 2024 21:49:15 +0100 Subject: [PATCH] Choose different names for name-conflicted resources --- terraform/api_server.tf | 2 +- terraform/keyvault.tf | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/terraform/api_server.tf b/terraform/api_server.tf index 70dafb5..37e5e2a 100644 --- a/terraform/api_server.tf +++ b/terraform/api_server.tf @@ -8,7 +8,7 @@ resource "azurerm_service_plan" "api_server_service_plan" { resource "azurerm_linux_web_app" "api_server_web_app" { - name = "${local.resource_prefix}-api-server" + name = "${local.resource_prefix}-api-server-web-app" resource_group_name = azurerm_resource_group.rg.name location = azurerm_service_plan.api_server_service_plan.location service_plan_id = azurerm_service_plan.api_server_service_plan.id diff --git a/terraform/keyvault.tf b/terraform/keyvault.tf index 63d3522..a58c35d 100644 --- a/terraform/keyvault.tf +++ b/terraform/keyvault.tf @@ -1,7 +1,7 @@ data "azurerm_client_config" "current" {} resource "azurerm_key_vault" "key_vault" { - name = "${local.resource_prefix}-keyvault" + name = "${local.resource_prefix}-secrets-keyvault" location = azurerm_resource_group.rg.location resource_group_name = azurerm_resource_group.rg.name enabled_for_disk_encryption = true