/aws-lambda-rust-runtime-sample

Sample of Rust runtime of AWS Lambda based on https://github.com/awslabs/aws-lambda-rust-runtime

Primary LanguageRust

AWS Lambda Rust Runtime Sample

Based on https://github.com/awslabs/aws-lambda-rust-runtime.

Prerequisites

Deployment via AWS CLI

$ cargo build --release --target x86_64-unknown-linux-musl
$ cp ./target/x86_64-unknown-linux-musl/release/aws_lambda_sample ./bootstrap && zip lambda.zip bootstrap && rm bootstrap
aws lambda create-function --function-name rustTest \
--handler doesnt.matter \
--zip-file fileb://./lambda.zip \
--runtime provided \
--role {ARN OF EXECUTION ROLE} \
--environment Variables={RUST_BACKTRACE=1} \
--tracing-config Mode=Active \
--profile {YOUR AWS PROFILE}