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 thestacks/
directory of your project. SST uses AWS CDK, to create the infrastructure. CDK doesn’t currently support Golang, so we’ll be using JavaScript here.services/
— Application Golang Code
The code that’s run when your API is invoked is placed in theservices/
directory of your project. We’ll be using Golang for this.
There is no ads to display, Please add some