Build hangs appear to be a recent docker reliability issue running an arm64 container from sam build, on an x86 machine.
The fix is to use an x86 docker image in sam build, using the --build-image arg - it appears that it works to use an x86 container to build the arm64 lambda function and lambda layer artifacts.
Fix is in the lma-ai-stack Makefile:
Describe the bug
See Issue in LCA project: Failing Mounting call_event_processor #189
Build hangs appear to be a recent docker reliability issue running an arm64 container from sam build, on an x86 machine. The fix is to use an x86 docker image in sam build, using the --build-image arg - it appears that it works to use an x86 container to build the arm64 lambda function and lambda layer artifacts. Fix is in the lma-ai-stack Makefile:
sam build \ --use-container \ --build-image public.ecr.aws/sam/build-python3.12:latest-x86_64 \ --parallel \ --cached \ --template-file 'out/template-replaced-bobs-artifacts-us-east-1-lma-python312_0.9.2_lca-ai-stack-0.9.2.yaml'
Also updates all Lambda functions to use python3.12