diff --git a/terraform/_locals.tf b/terraform/_locals.tf index ed1e9ce7..057b2466 100644 --- a/terraform/_locals.tf +++ b/terraform/_locals.tf @@ -27,25 +27,4 @@ locals { Version = data.external.useful_version_info.result.poetry_version ShaVersion = data.external.useful_version_info.result.commit_version } - - # wkspc_site_name is based on the workspace name; if it's 'prod' we use 'make', if it's 'dev' we use 'preview' - wkspc_site_name = { - prod = "make" - dev = "beta" - default = "alpha" - } - - # get the lookup value from the wkspc_site_name map based on the workspace name - site_name = lookup(local.wkspc_site_name, terraform.workspace) -} - -# used in "a new hope" apigateway -locals { - pdf_api_name = "pdf-api" - pdf_api_description = "JSON-to-PDF API for custom BotC scripts" - pdf_render_path = "render" - api_stage = (terraform.workspace == "prod") ? "prod" : "dev" - python_runtime = "python3.10" - lambda_stage_function_name = "${var.sls_service_name}-${terraform.workspace}-${var.sls_function_name}" - xray_tracingenabled = (terraform.workspace == "prod") ? true : false } diff --git a/terraform/secrets.tf b/terraform/secrets.tf index 385c10c0..4534b443 100644 --- a/terraform/secrets.tf +++ b/terraform/secrets.tf @@ -2,6 +2,6 @@ # with a DUMMY value that we don't mind if it changes # so we can manage the secret's existence here, but set the value manually when # we need to -resource "aws_secretsmanager_secret" "discord_webhook_secret" { - name = "${local.pdf_api_name}/discord-webhook-url/${local.api_stage}" -} +#resource "aws_secretsmanager_secret" "discord_webhook_secret" { +#name = "${local.pdf_api_name}/discord-webhook-url/${local.api_stage}" +#}