aws-samples / serverless-rust-demo

Sample serverless application written in Rust

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Running Locally?

JimLynchCodes opened this issue Β· comments

commented

Hey! πŸ‘‹

Nice project! The artillery load tests is a cool addition, too. πŸ‘

I am wondering if it's possible to run this project locally.

I think something like serverless-offline would be a nice way to "host the lambdas locally"...

However, when I try to use it I get an error that the Rust runtime is not supported...

Any ideas for this? How can people productively develop something using this project?

Thanks!

Hey @JimLynchCodes!

If I remember correctly, you're using the rust plugin for the Serverless framework, right? If that's the case, there might be an interference between that plugin and serverless-offline.

I also see that serverless-offline only supports Node, Python, Ruby, and Go runtimes at the moment. That said, once you've compiled your Lambda functions, any tool to run Lambda functions locally should work as long as it supports provided.al2. For example, sam local start-api works fine if I try with a project in SAM.