Lambda Sample
This repository contains a template Flogo app, built with the Go API of Project Flogo, which can be deployed to AWS Lambda
Building this app
-
Update the code in function.go
if needed
-
Run the following commands to build the executable
# Get all dependencies
$ go get -u ./...
# Generate the Flogo metadata
$ go generate ./...
# Build an executable
$ env GOOS=linux go build -ldflags="-s -w" -o bin/hello hello/*.go
-
Zip the executable
-
Upload it to your Lambda function
This would obviously be even easier to deploy using AWS SAM or Serverless Framework
If you're looking for a more in-depth overview of how the app is built, check out the lab