This is an AWS Serverless web app built with SAM. The API Gateway currently supports GET and POST. Both methods will trigger the same Lambda function. The Lambda function is written in Go.
All of the below commands are bundled into the deploy.sh script. Simply run ./deploy.sh
from the hello-go-webapp directory.
GOOS=linux go build -o main
zip deployment.zip main
aws cloudformation package --template-file template.yaml --output-template-file serverless-output.yaml --s3-bucket <<<YOUR BUCKET NAME>>>
aws cloudformation deploy --template-file serverless-output.yaml --stack-name HelloGoWebApp --capabilities CAPABILITY_IAM