Skip to content

Local Development Environment for AWS Lambda with Golang

License

Notifications You must be signed in to change notification settings

okashoi/go-lambda-local

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CircleCI

Requirements

  • Docker 1.13.0+
  • Docker-Compose

Usage

Initial setup

cp .env.example .env
vim .env             # edit environment variables

Start environment

make up

Build

Build from src/main.go.

make

Execute Lambda function

Invoke the event sam/events/event.json.

make invoke

If the source code is modified, built implicitly before executing.

Format Golang source codes (go fmt)

Format source codes under the direcotry src.

make go/fmt

Lint (gofmt, vet, golint)

make go/lint

Run test

make go/test

Shutdown environment

make down

About

Local Development Environment for AWS Lambda with Golang

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published