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.
cargo install cargo-lambda --lockedcargo lambda build --release --arm64or simply:
make buildThis compiles the hello binary to target/lambda/hello/bootstrap and zips it to bin/hello.zip,
the artifact referenced by serverless.yml.
serverless deployor:
make deploy$ curl https://***.execute-api.us-east-1.amazonaws.com/test/test
{"message":"Serverless Rust Hello"}