Skip to content

harryleesan/local-lambda-go

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Introduction

This project is a demonstration on how to use AWS SAM local to simulate a local AWS API Gateway pointing to a local lambda function (using Go as runtime) for local development.

Usage

  1. Compile the main.go into a binary
GOOS=linux go build -o main
  1. Install SAM Local

  2. Start the SAM Local server

sam local start-api
  1. Access the API (curl needs to be installed)
curl -X POST -d world http://localhost:3000/products/test

You should see Hello world% being returned.

About

Example of local lambda development in Go

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages