Use this template like this, to create your project:
Then, in your new project, you can deploy your AWS Lambda like this:
- rust-aws-lambda-template
- table of contents
- Overview
- How to use this template
- Status of rust-aws-lambda-template
- notes
rust-aws-lambda-template is a cargo-generate template, which creates a rust project that can deploy a "hello world" AWS Lambda using aws-lambda-rust-runtime. Deployment is done with aws-sam-cli
If you are reading this from a generated project simply overwrite this README.md with generated.README.md as a starting point.
Prerequistes to create a project using this template:
- rust (perhaps via rustup)
- cargo
- cargo-generate:
cargo install cargo-generate
- Run...
cargo generate --git https://github.com/kenshih/rust-aws-lambda-template --name <my-project-name>
# you will be prompted for:
# AWS_REGION - that your lambda will deploy in
# AWS_ACCOUNT_ID - a numeric id of our AWS account
# aws_tags - which are name/value strings like: name1=\"value1\" name2=\"value2\"
- This will create
<my-project-name>
similar tocargo new
, but with a deployable lambda - Setup and usage is covered in generated.README.md
- Supports lambda generation
- For requests to support additional features consider opening an issue
- TODO: Local development not supported
- this is built using aws-lambda-rust-runtime