4

Running and testing AWS Lambda container images locally

 1 year ago
source link: https://www.kevinhooke.com/2023/03/08/running-and-testing-aws-lambda-container-images-locally/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

Running and testing AWS Lambda container images locally

If you are packaging a Lambda as a Docker container image, to run locally start with:

docker run -p 9000:8080 your-image-name

And then to test you can post requests to the running container with curl:

curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{ "example": "value" }'

CategoriesKev's BlogTagsaws, custom runtime, docker, lambda

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Comment *

Name *

Email *

Website

Save my name, email, and website in this browser for the next time I comment.

Notify me of follow-up comments by email.

Notify me of new posts by email.

This site uses Akismet to reduce spam. Learn how your comment data is processed.

Post navigation


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK