I'm trying to test my lambda functions locally using the SAM local CLI. I start the API with this command:
sam local start-api --template ./sam-template.yml --host 0.0.0.0 --port 4001
However, every time I call the API the lambda invocation takes a lot of time (4-5 seconds) I assume the docker container is started every time a function is called.
Is there a workaround to this?
sam local invoke
? – Breeching