From a5d2bee74895642b14cb8a817f19eb0c81c5d19b Mon Sep 17 00:00:00 2001 From: Adam Moussa <166072409+amoussa1229@users.noreply.github.com> Date: Wed, 3 Jun 2026 14:56:02 -0400 Subject: [PATCH] Fix po-email-processor bundling for arm64 target (#34) po-email-processor has been down since 2026-05-12: the bundling command installed wheels for the build host's architecture, so CD deploys from amd64 runners shipped x86_64 pydantic_core into an ARM_64 function, crashing every INIT with Runtime.ImportModuleError. Pin the pip platform to manylinux2014_aarch64 with --only-binary, matching the pattern wo_stack already uses. Verified live: deployed from branch, manual invoke OK; 920 emails from the outage window backfilled via scripts/reprocess logic. --- cdk/po_stack.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cdk/po_stack.py b/cdk/po_stack.py index f9d0d6c..dde358e 100644 --- a/cdk/po_stack.py +++ b/cdk/po_stack.py @@ -73,7 +73,9 @@ class PoIngestStack(Stack): command=[ "bash", "-c", - "pip install -r requirements.txt -t /asset-output && cp handler.py /asset-output/", + "pip install --platform manylinux2014_aarch64 --only-binary=:all: " + "-r requirements.txt -t /asset-output && " + "cp handler.py /asset-output/", ], ), ),