Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 606 Bytes

Setup.md

File metadata and controls

33 lines (24 loc) · 606 Bytes

Setup Lambda Locally

Get aws-sam-cli

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
sam --version

Init application:

sam init

Build and invoke application:

sam build -t hello_world.yaml
sam local invoke

Start api in local environment:

sam local start-api
curl http://127.0.0.1:3000/hello