Skip to content
/ lamgo Public template

Go-based AWS Lambda template using AWS SAM for easy serverless deployment

License

Notifications You must be signed in to change notification settings

richardamare/lamgo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lamgo

... as in Lambda + Go

This is a simple AWS Lambda template for Go to write serverless functions as a single binary.

Note: Still a work in progress

It uses AWS SAM to build and deploy the Lambda function.

Technologies

Prerequisites

Usage

  1. Clone this repository
    git clone https://github.com/richardamare/lamgo.git
  2. Change directory to the cloned repository
    cd lamgo # or whatever you named the directory
  3. Configure the AWS CLI
    aws configure
  4. Configure the AWS SAM deployment
    sam deploy --guided
    NOTE: Set the SAM configuration environment to dev or edit the Makefile deployment
  5. Deploy the Lambda function to AWS
    make deploy

Run locally using:

go run cmd/api/main.go

Demo

Currently, there are just two endpoints for demonstration purposes:

  • /health
  • /hello?name=

License

MIT

About

Go-based AWS Lambda template using AWS SAM for easy serverless deployment

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published