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