Categorygithub.com/JosiahWitt/lambgo
module
0.1.14
Repository: https://github.com/josiahwitt/lambgo.git
Documentation: pkg.go.dev

# README

Lambgo

CI Go Report Card codecov

Go Version Support

Only the last two minor versions of Go are officially supported.

Install

# Requires Go 1.16+
$ go install github.com/JosiahWitt/lambgo/cmd/lambgo@latest

About

Lambgo is a simple framework for building AWS Lambdas in Go. It currently consists of a CLI to build paths listed in the .lambgo.yml file.

Configuring Lambgo

Lambgo is configured using a .lambgo.yml file which is located in the root of your Go Module (next to the go.mod file).

Here is an example .lambgo.yml file:

# Directory to use as the root for build artifacts.
# Optional, defaults to tmp.
outDirectory: tmp

# File name to use for all zipped binaries.
# Useful when using provided.al2 instead of go1.x for the Lambda runtime.
# Optional, defaults to the name of the Lambda's directory.
# zippedFileName: bootstrap

# Additional build flags passed to "go build"
# For example, if you want to provide extra compiler or linker options
# buildFlags: -tags extra,tags -ldflags="-linker -flags"

# Allow overriding the GOOS and GOARCH environment variables to
# cross compile for a different operating system or architecture.
# Optional, defaults to GOOS=linux and GOARCH=amd64.
# goos: linux
# goarch: amd64

# Paths to build into Lambda zip files.
# Each path should contain a main package.
# The artifacts are built to: <outDirectory>/<buildPath>.zip
buildPaths:
  - lambdas/hello_world

Using the above example file would cause lambgo build to build lambdas/hello_world to tmp/lambdas/hello_world.zip.

Examples

See the examples directory for examples.

# Packages

No description provided by the author