This is an example of an AWS Lambda function written in Rust. The function checks the existence of an user.
This repository is based on rust-aws-lambda.
Build:
cargo build --release --target x86_64-unknown-linux-musl
Package:
cp ./target/x86_64-unknown-linux-musl/release/rust-aws-lambda-user-exists ./bootstrap && zip lambda.zip bootstrap
Test:
docker run --rm -v "$PWD":/var/task lambci/lambda:provided handler '{"username": "tizio90"}'