Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Invoke lambda locally with serverless invoke #124

Closed
fomalhaut79 opened this issue Dec 27, 2020 · 4 comments
Closed

Invoke lambda locally with serverless invoke #124

fomalhaut79 opened this issue Dec 27, 2020 · 4 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.

@lucacasonato
Copy link
Member

This repo is now archived because we are discontinuing the AWS Lambda layer for Deno. Instead we recommend you use a Docker image on AWS Lambda to run Deno. You can find a full guide in the docs.

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

No branches or pull requests

4 participants