AWS Lambda with Go starter with localstack
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.
func
test
.gitignore
LICENSE
Makefile
README.md
docker-compose.yml

README.md

lambda-local

A generic AWS Lambda function for base start.

Development

Prerequisites

Run

For production replication lambda environment:

# Run API Gateway using SAM handler attached to docker network
$ make lambda

# Local Lambda invocation
$ make lambda-invoke

For offline test cases using localstack:

# Create Docker Bridge for local AWS Stack
$ docker network create -d bridge sam-localstack

# Spin up docker image for localstack
$ docker-compose up -d

# [OR] To intercept TCP connections for SES (optional: --env-vars ENV.json)
$ sam local start-api --docker-network $(docker network inspect --format='{{.Id}}' sam-localstack)

# Commit dependencies with `dep` (see prerequsites)
$ dep ensure

Test

$ docker-compose up -d
$ make test

Resources