Skip to content

Latest commit

 

History

History
17 lines (14 loc) · 805 Bytes

README.md

File metadata and controls

17 lines (14 loc) · 805 Bytes

Hello Go WebApp

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.

Usage

All of the below commands are bundled into the deploy.sh script. Simply run ./deploy.sh from the hello-go-webapp directory.

TO BUILD

GOOS=linux go build -o main
zip deployment.zip main

TO DEPLOY

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