Closed csreddy closed 3 months ago
It appears that the recent images has changes that caused the crash. Resolved the issue by using older nodejs and python images. Not sure if this is expected or if this should be treated as bug in the image.
nodejs: public.ecr.aws/sam/build-nodejs18.x:1.65-x86_64. python: public.ecr.aws/sam/build-python3.8:1.65.0-x86_64
This was apparently an issue during last December with an update on the Lambda base images https://github.com/aws/aws-lambda-base-images/issues/131
It was addressed in a newer version of Chromium release at that time: https://github.com/Sparticuz/chromium/pull/187, https://github.com/Sparticuz/chromium/issues/229#issuecomment-2075427288
I'm running a SAM project locally. The project code contains Chromium and Puppeteer attached as Lambda layer. When lambda is invoked locally Chromium crashes with below error. However the exact same code runs successfully when deployed to AWS.
Note: I am bundling all essential shared objects and binaries for Chromium to run successfully which I verified in Lambda function.
This is happening in both nodejs18.x and python3.8 runtimes.
Error
template.yml
I have verified with old and new SAM CLI versions and all of them have same behavior locally.
Not sure if anything changed in RIE that would behave differently locally