Skip to content

Commit

Permalink
fixup! chore: remove old terraform files (api / s3)
Browse files Browse the repository at this point in the history
  • Loading branch information
chizmw committed Oct 9, 2023
1 parent 6b813de commit 634acdd
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 24 deletions.
21 changes: 0 additions & 21 deletions terraform/_locals.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
6 changes: 3 additions & 3 deletions terraform/secrets.tf
Original file line number Diff line number Diff line change
Expand Up @@ -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}"
#}

0 comments on commit 634acdd

Please sign in to comment.