aws-samples / amazon-transcribe-live-meeting-assistant

MIT No Attribution
77 stars 27 forks source link

sam build --use-image and python 3.12 #125

Closed rstrahan closed 1 month ago

rstrahan commented 1 month ago

Issue #, if available:

124

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 By submitting this pull request, I confirm that you can use, modify, copy, and redistribute this contribution, under the terms of your choice.