/go-rest-api-serverless

Serverless Golang REST API hosted on AWS Lambda with OpenAPI code generation.

Primary LanguageGo

go-rest-api-serverless

Serverless Golang REST API hosted on AWS Lambda.

Requirements

  • Go 1.18
  • Docker
  • AWS CDK

Features

Not included:

  • Auth - add BYO auth handling inside Echo server
  • Doesn't build an API Gateway from the OpenAPI spec, for example with a SpecRestAPI.

Development

Launch a development server with Docker:

docker-compose up

Run unit tests:

make test

Validate OpenAPI spec with:

make validate

AWS Deployment

export AWS_PROFILE=<YOUR_PROFILE_NAME>
make deploy