mirror of
https://github.com/Hestia-Homes/Model.git
synced 2026-07-12 13:29:04 +00:00
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> |
||
|---|---|---|
| .. | ||
| acm_certificate | ||
| cloudfront | ||
| container_registry | ||
| ecr | ||
| general_iam_policy | ||
| lambda_execution_role | ||
| lambda_service | ||
| lambda_service_zip | ||
| lambda_sqs_trigger | ||
| lambda_with_api_gateway | ||
| lambda_with_sqs | ||
| route53 | ||
| s3 | ||
| s3_iam_policy | ||
| s3_presignable_bucket | ||
| ses | ||
| sqs_queue | ||
| tf_state_bucket | ||