Skip to content
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

Invoke lambda locally with serverless invoke #124

Open
fomalhaut79 opened this issue Dec 27, 2020 · 3 comments
Open

Invoke lambda locally with serverless invoke #124

fomalhaut79 opened this issue Dec 27, 2020 · 3 comments

Comments

@fomalhaut79
Copy link

I am not able to invoke lambda locally with Serverless framework with sls invoke local -f ...
All works well when I deploy my lambda, but when I try to run it locally I have the following error:
Failed to run docker for provided.al2 image. Error: Couldn't find valid bootstrap(s): [/var/task/bootstrap /opt/bootstrap]
If it is possible, could you provide some instructions how to do it.
Thanks

@hayd
Copy link
Contributor

hayd commented Jun 4, 2021

I think this is an issue with sls deploy not working with arn layers (or that's not wired up correctly?).

I wonder if there is a way to do this using the docker image: https://hub.docker.com/r/hayd/deno-lambda

I am assuming this wasn't using that...

--

Edit: I see:

Serverless: Invoke aws:common:moveArtifactsToPackage

 Type Error ----------------------------------------------

  TypeError: layer.split is not a function

when trying to run this locally with the example-serverless.

@deathemperor
Copy link

we kind of need something like serverless-offline for deno-lambda.

@hayd
Copy link
Contributor

hayd commented Jun 9, 2021

I remember there being an issue for custom provided.al2 runtime on serverless-offline but can't find it.
The serverless example also needs an update...

My suspicion is you may be able to do this already with the --useDocker option (assuming you use the docker container.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants