From fa669bc3522fe9d859424c080de6fa12d0863905 Mon Sep 17 00:00:00 2001 From: Bill Metangmo <25366207+billmetangmo@users.noreply.github.com> Date: Thu, 28 Nov 2024 22:44:44 +0100 Subject: [PATCH] fix duplicate local --- infra/main.tf | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/infra/main.tf b/infra/main.tf index d949914..39e68d2 100644 --- a/infra/main.tf +++ b/infra/main.tf @@ -282,21 +282,6 @@ resource "aws_api_gateway_deployment" "test" { stage_name = (terraform.workspace == "mtchoun-mouh-master") ? var.stage_name : "${terraform.workspace}-${var.stage_name}" } -locals { - - url = join("/", [aws_api_gateway_deployment.test.invoke_url, aws_api_gateway_resource.resource.path_part]) - - index_page = templatefile("templates/index.tmpl", { - url = local.url - contact = var.MAINTAINER_MAIL - }) - - # If your backend is not Terraform Cloud, the value is ${terraform.workspace} - # otherwise the value retrieved is that of the TFC_WORKSPACE_NAME with trimprefix - workspace_name = var.TFC_WORKSPACE_NAME != "" ? trimprefix("${var.TFC_WORKSPACE_NAME}", "mtchoun-mouh-") : "${terraform.workspace}" - workspace = substr(local.url, 0, 64) -} - resource "local_file" "index_page" { content = local.index_page filename = "../html/index.html"