The author shows how to create a serverless REST API with Golang on AWS using SST in this example.
Requirements (Golang, Node.JS)
- Node.js >= 10.15.1 for our CDK code
- Golang 1.16 or similar for our Lambda code
- An AWS account with the AWS CLI configured locally
Golang Project layout
An SST app is made up of two parts.
stacks/— Application Infrastructure
The code that describes the infrastructure of your serverless app is placed in the
services/— Application Golang Code
The code that’s run when your API is invoked is placed in the
services/directory of your project. We’ll be using Golang for this.