The following is a Rust Axum Api using Lambda with Api Gateway Proxy integration. This application uses DynamoDB for storage.
Rust
(https://www.rust-lang.org/learn/get-started).Cargo Lambda
(https://www.cargo-lambda.info/guide/getting-started.html).
- PAYMENTS_TABLE_NAME
- AWS_ACCESS_KEY_ID
- AWS_SECRET_ACCESS_KEY
- AWS_DEFAULT_REGION
- DYNAMODB_ENDPOINT
- KMS_ENDPOINT
- KMS_RSA_KEY_ID
- Run
cargo lambda watch -a 127.0.0.1 -p 8080
ormake run
.
- Run
cargo lambda build --release --arm64 --output-format zip
. - Deploy AWS Lambda function with Api Gateway
/
and{proxy+}
resources withANY
method. Withbootstrap
as handler andarm64
architecture. - Upload zip file located in
/target/lambda/<PROJECT_NAME>/bootstrap.zip
after build.