Model/deployment/terraform/lambda
Jun-te Kim adb1bf4b56 Log GITHUB_SHA on /health; move zip-size gate to its own PR workflow
/health already returned GITHUB_SHA in its response but never logged
it, and the fastapi lambda's Terraform environment never actually set
GITHUB_SHA — so every health check response contained "unknown" in
production. Wire var.github_sha through the fastapi lambda module
(default "unknown" for local/other invocations) via a new
TF_VAR_github_sha env var set from `github.sha` in
_deploy_lambda.yml's Terraform Plan step, and log it on every /health
call so a request in CloudWatch can be tied back to the deploy that
served it.

Also fix the zip-size gate added for PR #1469: putting it in
tests/test_lambda_zip_size.py (run via the Docker-based ddd_tests.yml
suite) broke CI, because Dockerfile.test's build context excludes
deployment/* (.dockerignore), so check_lambda_zip_size.py couldn't
find variables.tf to read zip_excludes from inside that container.
Move the check to its own lightweight workflow,
check_lambda_zip_size.yml, triggered on pull_request into main — a
plain checkout (no Docker build) has the full repo, so the check
works, runs fast, and still gates merges to main before a regression
can roll into the dev deploy.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-06 13:43:36 +00:00
..
_template added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
address2UPRN added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
audit_generator add missing variable to lambda variables 2026-06-09 15:33:35 +00:00
bulk_address2uprn_combiner added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
bulkUploadFinaliser tests files 2026-06-04 11:47:42 +00:00
categorisation added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
condition-etl added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
ecmk_to_ara added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
engine added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
fast-api Log GITHUB_SHA on /health; move zip-size gate to its own PR workflow 2026-07-06 13:43:36 +00:00
hubspot_deal_etl hubspot etl 20 in parrell 2026-06-19 11:07:30 +00:00
landlordDescriptionOverrides added landlord description overrides 2026-05-29 12:12:54 +00:00
magic_plan rename database environment variables 2026-06-05 16:04:33 +00:00
modelling_e2e decrease lambda concurrency from 32 to 12 2026-06-29 13:32:53 +00:00
ordnanceSurvey added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
pashub_to_ara increase pashub fetcher timeout to 5 mins 2026-06-04 15:12:29 +00:00
postcodeSplitter actually deploy postcode splitter 2026-05-20 15:17:55 +00:00
sharepoint_renamer correct lambda name 2026-06-15 14:08:40 +00:00