/rust-aws-lambda-template

A [cargo-generate](https://github.com/cargo-generate/cargo-generate) template for a rust project that implements an AWS lambda

Primary LanguageShellMIT LicenseMIT

rust-aws-lambda-template

Use this template like this, to create your project: create-project-example

Then, in your new project, you can deploy your AWS Lambda like this: sample-deploy

table of contents

Overview

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.

How to use this template

Prerequisites

Prerequistes to create a project using this template:

cargo install cargo-generate

Create your project with this template!

  • 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 to cargo new, but with a deployable lambda
  • Setup and usage is covered in generated.README.md

Status of rust-aws-lambda-template

  • Supports lambda generation
  • For requests to support additional features consider opening an issue
  • TODO: Local development not supported

notes