lamgo

module
v0.0.0-...-0ea60ca Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 10, 2023 License: MIT

README

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

Directories

Path Synopsis
cmd
api command

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL