An accompanying example project to the Conf42: Golang 2022 presentation by Savas Ziplies.
A scaffold to deploy Golang framework-driven Serverless functions to AWS.
- AWS CLI already configured with required permissions
- Docker installed
- Golang
- SAM CLI
To run/test locally:
- Run
docker-compose up -d timescaledb-postgis localstack
- (Optional) Create a local queue in localstack for testing:
aws --endpoint-url=http://localhost:4566 sqs create-queue --queue-name goserverless-queue-dev
- Copy
.env.example
to.env
- Run the single commands or deploy
cd .build/aws
sam build
sam deploy --guided
for a first time deployment
- The "api" cmd:
go build github.com/elipzis/go-serverless/api
- The "queue" cmd:
go build github.com/elipzis/go-serverless/queue
- The "web" cmd:
go build github.com/elipzis/go-serverless/web
The main tech stack contains of
Thanks to Conf42 for having me :)
- Web - Conf42
- LinkedIn - @conf42
- Twitter - @conf42com
The MIT License (MIT). Please see License File for more information.