POC of using AWS SAM
# press enter for the default options
sam init
sam build
sam deploy --guided
or
Create bucket
aws s3api create-bucket --bucket my-bucket --region us-east-1
and
sam package --s3-bucket "bucket-name"
sam deploy --s3-bucket "bucket-name" --stack-name "stack-name" --capabilities CAPABILITY_IAM
Easy local running
sam local start-api
or
Invoke your lambda function directly
sam local invoke "HelloWorldFunction" -e events/event.json
or
Using debug with AWS Toolkit in VSCODE
aws cloudformation delete-stack --stack-name sam-poc --region region
Configure via AWS console.