Skip to content

Latest commit

 

History

History
27 lines (20 loc) · 568 Bytes

README.md

File metadata and controls

27 lines (20 loc) · 568 Bytes

rust-on-lambda-boilerplate

Requirements

Build

cargo lambda build --release -o zip --arm64 --bins

Deploy

Within /infrastructure:

terraform apply

Add new HTTP function

  1. cargo lambda new <name>
  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