From f1de13b53274549d9166fc56ce91c707a1ab4713 Mon Sep 17 00:00:00 2001 From: md-dev970 Date: Sun, 10 May 2026 22:41:12 +0100 Subject: [PATCH] feat: Update Lambda function handler --- infra/terraform/envs/production/response.json | 1 - infra/terraform/modules/platform_stack/lambda.tf | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) delete mode 100644 infra/terraform/envs/production/response.json diff --git a/infra/terraform/envs/production/response.json b/infra/terraform/envs/production/response.json deleted file mode 100644 index 08841e4..0000000 --- a/infra/terraform/envs/production/response.json +++ /dev/null @@ -1 +0,0 @@ -{"errorType":"Error","errorMessage":"Missing required environment variable: CSRF_SECRET","trace":["Error: Missing required environment variable: CSRF_SECRET"," at getRequiredEnv (file:///var/task/dist/config/env.js:7:15)"," at file:///var/task/dist/config/env.js:59:18"," at ModuleJob.run (node:internal/modules/esm/module_job:343:25)"," at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:665:26)"," at async _tryAwaitImport (file:///var/runtime/index.mjs:1098:16)"," at async _tryRequire (file:///var/runtime/index.mjs:1156:37)"," at async _loadUserApp (file:///var/runtime/index.mjs:1186:16)"," at async UserFunction.js.module.exports.load (file:///var/runtime/index.mjs:1235:21)"," at async start (file:///var/runtime/index.mjs:1454:23)"," at async file:///var/runtime/index.mjs:1464:1"]} \ No newline at end of file diff --git a/infra/terraform/modules/platform_stack/lambda.tf b/infra/terraform/modules/platform_stack/lambda.tf index d17bdf2..3c389d7 100644 --- a/infra/terraform/modules/platform_stack/lambda.tf +++ b/infra/terraform/modules/platform_stack/lambda.tf @@ -14,7 +14,7 @@ resource "aws_lambda_function" "scheduled_cost_sync" { function_name = "${var.name_prefix}-scheduled-cost-sync" role = aws_iam_role.scheduled_sync_lambda.arn runtime = "nodejs22.x" - handler = "dist/jobs/scheduled-cost-sync.lambda.handler" + handler = "dist/jobs/scheduled-cost-sync-handler.handler" filename = data.archive_file.scheduled_cost_sync.output_path source_code_hash = data.archive_file.scheduled_cost_sync.output_base64sha256 timeout = 900