-
Notifications
You must be signed in to change notification settings - Fork 353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws-lambda-provided doesnt work #462
Comments
👋 hi @misogihagi we're going to need a little bit more information about your code. Do you get any compilation error? |
pulling my code,
building,
and running
then
reproducing above. |
@misogihagi I'm not familiar with that docker image, but for what you post, I think you need to modify the
@seanpianka that's unrelated. |
It looks irrelevant...
returned how can I test offline... |
My recommendation is to use cargo-lambda. You don't need docker, and I know it works, because I wrote it, and I just tested it with your repository 🤣 This is how you use it for you test repository: 1: Install
2: In the root of your repository, start the server in one terminal with:
3: Send invoke requests from another terminal:
|
@misogihagi You should mount the custom runtime bootstrap under /var/runtime directory inside the container. sudo docker run \
-p 9000:8080 \
-v /tmp/lambda:/var/runtime \
amazon/aws-lambda-provided:al2 |
@calavera
@bnusunny |
@misogihagi |
related to #455
I used amazon/aws-lambda-provided:al2 instead lambci/lambda:provided
then
curl -XPOST "http://localhost:9000/2015-03-31/functions/function/invocations" -d '{"key":"hello"}'
responded nothing.
Deployed my function works well but offline docker version doesn't work.
how should I make it closer to running AWS lambda?
The text was updated successfully, but these errors were encountered: