AWSM SAM

AWS SAM Lambda

Initialize a new Go Lambda project

1
sam init --runtime go1.x --name "example"

Start a local server

1
sam local start-api --env-vars env.json

Deploy the application

1
2
3
4
5
sam deploy \
--region "us-east-1" \
--stack-name example \
--s3-bucket somebucket \
--capabilities CAPABILITY_IAM