Local Development Environment for AWS Lambda with Golang
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
sam
src
.env.example
.gitignore
LICENSE
Makefile
docker-compose.yml
readme.md

readme.md

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