SAM local lambda prevent rebuilding image on every invocation #6277
Labels
blocked/close-if-inactive
Blocked for >14 days with no response, will be closed if still inactive after 7 days
type/question
I am trying to test my Lambda locally using
sam local start-lambda
. It is attached to a local Lambda Layer called MyLambdaLayer. However, whenever I try to invoke the Lambda, it always rebuilds the image. Is there a way to cache the build or prevent it from rebuilding on every invocation?Here is my setup procedure:
sam local start-lambda --template Lambda.yaml --skip-pull-image
npm test lambdaInvoke.test.js
Here are the logs from the local Lambda server every time I invoke the Lambda:
The text was updated successfully, but these errors were encountered: