https://github.com/3wille/rust-on-lambda-boilerplate
Template for quickly creating a Rust web app running on AWS Lambda
https://github.com/3wille/rust-on-lambda-boilerplate
aws-lambda awslambda cargo-lambda rust rust-lang terraform terraform-aws
Last synced: 2 months ago
JSON representation
Template for quickly creating a Rust web app running on AWS Lambda
- Host: GitHub
- URL: https://github.com/3wille/rust-on-lambda-boilerplate
- Owner: 3wille
- Created: 2023-06-30T11:17:53.000Z (almost 2 years ago)
- Default Branch: main
- Last Pushed: 2023-08-18T18:52:39.000Z (almost 2 years ago)
- Last Synced: 2025-01-25T10:43:08.157Z (4 months ago)
- Topics: aws-lambda, awslambda, cargo-lambda, rust, rust-lang, terraform, terraform-aws
- Language: HCL
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# rust-on-lambda-boilerplate
## Requirements
* [cargo lambda](https://www.cargo-lambda.info/)
* [terraform](https://www.terraform.io/)## Build
```shell
cargo lambda build --release -o zip --arm64 --bins
```## Deploy
Within ``/infrastructure``:
```
terraform apply
```## Add new HTTP function
1. ``cargo lambda new ``
2. enter ``y`` to create an HTTP function
3. Select ``Amazon Api Gateway HTTP Api``
4. Add crate to workspace members in ``/Cargo.toml``
5. Add ``resource_function`` module call in ``/infrastructure/main.tf``
6. re-build and re-deploy