rust-serverless / lambda-rust

🐳 🦀 a dockerized lambda build env for rust applications
MIT License
34 stars 8 forks source link

error message trying to run it locally #25

Closed Chandrian closed 2 years ago

Chandrian commented 2 years ago

Trying to run it locally output the following error message: entrypoint requires the handler name to be the first argument

Related to this excerpt in the readme:


docker run \
    -i -e DOCKER_LAMBDA_USE_STDIN=1 \
    --rm \
    -v ${PWD}/target/lambda/release/output/{your-binary-name}:/var/task:ro,delegated \
    public.ecr.aws/lambda/provided:al2
jerusdp commented 2 years ago

The code example works for the previous container. I am working on a solution using the aws container and will update once it has been tested.

zamazan4ik commented 2 years ago

@Chandrian sorry for the delay from my side. Can you please check the current instructions and confirm that it works for you? Thanks in advance!

zamazan4ik commented 2 years ago

I am closing the issue since seems like the problem is fixed. If not - feel free to reopen it.

Thanks!