lambda-sample

command
v0.0.0-...-ec090b1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 5, 2018 License: MIT Imports: 12 Imported by: 0

README

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

  1. Update the code in function.go if needed

  2. 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
  1. Zip the executable

  2. Upload it to your Lambda function

This would obviously be even easier to deploy using AWS SAM or Serverless Framework

More information

If you're looking for a more in-depth overview of how the app is built, check out the lab

Documentation

Overview

Package main implements the main logic of the function

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL