Model/deployment/terraform/modules
Jun-te Kim 409934a730 Fix fastapi lambda exceeding AWS's 250MB unzipped size limit
dev deploys have failed since PR #1231 (2026-06-15) with
InvalidParameterValueException: Unzipped size must be smaller than
262144000 bytes. The lambda zip is built from the whole repo root
(deployment/terraform/modules/lambda_with_api_gateway) and only
excluded tests/deployment/pycache — so .git (206MB packed), the
per-schema corpus.jsonl fixtures under backend/epc_api/json_samples/
(~50MB), and the sap10_calculator PDF specs (~13MB) were all being
zipped up even though none of them are read at runtime.

Also add scripts/check_lambda_zip_size.py, which mirrors the
terraform module's pip install + zip-with-excludes behaviour to
report the projected unzipped size without mutating the repo, and
wire it into deploy_terraform.yml as a fast_api_lambda_zip_size_check
job that gates the real deploy so this fails fast with a clear
message instead of surfacing as an opaque Terraform/AWS error.

Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
2026-07-06 12:54:03 +00:00
..
acm_certificate added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
cloudfront added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
container_registry added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
ecr added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
general_iam_policy added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
lambda_execution_role added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
lambda_service added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
lambda_service_zip added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
lambda_sqs_trigger added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
lambda_with_api_gateway Fix fastapi lambda exceeding AWS's 250MB unzipped size limit 2026-07-06 12:54:03 +00:00
lambda_with_sqs added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
route53 added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
s3 added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
s3_iam_policy added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
s3_presignable_bucket added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
ses added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
sqs_queue added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00
tf_state_bucket added postcode splitter rewrite to ddd 2026-05-19 16:35:09 +00:00