

Running and testing AWS Lambda container images locally
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.

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
Recommend
-
63
thoughts
-
6
Running Liberty Applications with Db2 locally IBM provides a nice workshop that demonstrates how to modernize legacy WebSpher...
-
13
Running legacy Java Applications locally I’ve been working on app modernization recently and had to get some older Java EE applications to work. In order to do this, I’ve used containers which was much faster than co...
-
9
-
9
Local Lambda development challenges Lambda development usually starts with writing a handler function and deploying it to an AWS account. If you use a standard runtime, such as node14.x, the code the Lambda environment r...
-
6
How To PGP Encrypt An S3 File Using AWS Lambda Running Docker Images
-
7
Using AWS SAM to run your Lambda function locally What is AWS SAM? SAM stands for Serverless Application Model and it is a framework that is used for developing and deploying serverless applications. Th...
-
9
Home Menu
-
7
Debugging an AWS Lambda Function Locally with Visual Studio Code (VS Code) on Windows, Linux, and MacDownload
-
4
...
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK