Skip to content
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.

Latest commit

 

History

History
103 lines (63 loc) · 2.24 KB

README.md

File metadata and controls

103 lines (63 loc) · 2.24 KB

lambda-blueprint Build Status License: MIT

THIS IS DEPRECATED - use func instead

Blueprint for developing and deploying AWS Lambda functions using Go and Terraform.

setup

Go

Install Go 1.11+. If you are new to Go it's also recommended to take the Tour of Go and do the Go Tooling Workshop.

Then try to build, test and lint the code by running

make all 

AWS CLI

Install the aws cli, configure your credentials and test the installation

aws --version

Terraform

Install Terraform 0.11.7+ (e.g. using brew install terraform) and test the installation

cd $GOPATH/src/github.com/spring-media/lambda-blueprint
make init plan

Editor

Using VSCode with Go and Terraform extensions is recommended.

build

to lint, test, build and statically analyze the lambda functions run

make

check make help for all targets.

infrastructure

init

to initialize S3 deployment bucket (one-time operation) run

make s3-init

to initialize terraform run

make init

package

to release and upload new lambda versions to S3 run

make package

deploy

to build/change infrastructure using Terraform run

make deploy

destroy

to destroy Terraform-managed infrastructure run

make destroy

to remove the S3 deployment bucket and all versions run

make s3-destroy

Rollback

to rollback to a previous version (uploaded to S3) provide the target version and run

make VERSION=v0.0.1 deploy