Skip to content

drewdresser/hello-go-serverless-webapp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages