Skip to content

An actual working AWS Lambda Rust hello-world sample with API Gateway configuration made via SAM Template.

License

Notifications You must be signed in to change notification settings

refacktor-aws/aws-lambda-rust

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

No fluff, no fuss SAM-based AWS Lambda Rust hello-world example.

This was made by combining the instructions from two different sources:

Install

# AWS SAM
wget https://github.com/aws/aws-sam-cli/releases/latest/download/aws-sam-cli-linux-x86_64.zip
unzip aws-sam-cli-linux-x86_64.zip -d sam-installation
sudo ./sam-installation/install

# Rust Compiler
curl --proto '=https' --tlsv1.2 -sSf https://sh.rustup.rs | sh
. $HOME/.cargo/env
rustup target add x86_64-unknown-linux-musl

Build

sam build

Test

sam local start-api

curl -d {} http://127.0.0.1:3000/?firstName=TEST

Deploy

sam deploy --guided

About

An actual working AWS Lambda Rust hello-world sample with API Gateway configuration made via SAM Template.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published