mrserverless / serverless-golang

AWS Lambda Go functions using Serverless Framework and Python shim
Other
302 stars 21 forks source link

Running on localstack #37

Open EugeneKostrikov opened 6 years ago

EugeneKostrikov commented 6 years ago

Really struggling to run with localstack. Trying to use serverless-localstack plugin, but as soon as i drop it into .serverless_plugins make deps and make deploy get stuck forever. Running build outside of docker looks fine, trying to deploy it i'm getting Unable to find handler script in Lambda archive. Have absolutely no issues with real AWS though.

Is that the intended way to run on localstack even? Any chance to get some first steps explained?

mrserverless commented 6 years ago

@EugeneKostrikov I'm assuming you are using https://github.com/temyers/serverless-localstack?

The way we've done it is via docker https://hub.docker.com/r/localstack/localstack/ by adding localstack/localstack:{version} image into docker-compose and run tests without any npm installs locally.

Which functionalities are you trying to leverage out of localstack? I.e. s3, kinesis or dynamodb? I'll see if I can pull in some sample code

kmarquardsen commented 6 years ago

ever get an example going for this?

mrserverless commented 6 years ago

Haven't had a chance yet.