Docker image for invoke lambda locally.
323
Docker image used for invoke and update lambda functions locally.
Repository: https://github.com/raphaelbh/lambda-local
Available actions:
update-code: update lambda code created in the localstack
A folder with the lambda function must be informed through a volume:
{your_folder}:/lambda
Important:
/var/run/docker.sock should be shared as volume--net=host# create alias for container run
alias lambda="docker run -v /var/run/docker.sock:/var/run/docker.sock -v $(pwd)/sample/lambda:/lambda --net=host raphaelbh/lambda"
# call invoke action
$ lambda invoke '{"key":"value"}'
or
$ lambda invoke $(cat sample/events/event.json | tr -d " \t\n\r")
# call update-code action
$ lambda update-code 'LambdaFunctionName'
If you have any feedback, please contact me at [email protected]
Content type
Image
Digest
sha256:2d8eabc66…
Size
142.9 MB
Last updated
over 3 years ago
docker pull raphaelbh/lambda