Visitar URL original
examples/aws-rust-simple-http-endpoint at v4 · serverless/examples · GitHub
Skip to content

Latest commit

 

History

History

aws-rust-simple-http-endpoint

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 
 
 
 
 
 
 

README.md

Serverless Boilerplate - AWS - Rust

Make sure serverless is installed. See installation guide.

You will also need to set up your AWS account credentials using environment variables or a configuration file. Please see the this guide for more information.

The function runs on the provided.al2023 (arm64) custom runtime, built with cargo-lambda.

1. Install cargo-lambda

cargo install cargo-lambda --locked

2. Build

cargo lambda build --release --arm64

or simply:

make build

This compiles the hello binary to target/lambda/hello/bootstrap and zips it to bin/hello.zip, the artifact referenced by serverless.yml.

3. Deploy

serverless deploy

or:

make deploy

4. Invoke deployed function

$ curl https://***.execute-api.us-east-1.amazonaws.com/test/test
{"message":"Serverless Rust Hello"}