Skip to content

Flogo Dot IO - Serverless App to create the showcase

License

Notifications You must be signed in to change notification settings

retgits/fdio-lambda

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

fdio-lambda - Flogo Dot IO for AWS Lambda

A serverless tool designed to help create the items.toml from which the showcase and the flogo cli can get their search results.

Installing

There are a few ways to install this project

Get the sources

You can get the sources for this project by simply running

$ go get -u github.com/retgits/fdio-lambda/...

Deploy

Deploy the Lambda app by running

$ make deploy

Layout

.                    
├── test            
│   └── event.json      <-- Sample event to test using SAM local
├── .gitignore          <-- Ignoring the things you do not want in git
├── LICENSE             <-- The license file
├── main_test.go        <-- Test the code
├── main.go             <-- The Lambda code
├── Makefile            <-- Makefile to build and deploy
├── README.md           <-- This file
└── template.yaml       <-- SAM Template

Parameters

AWS Systems Manager parameters

The code will automatically retrieve the below list of parameters from the AWS Systems Manager Parameter store:

  • /github/apptoke: Your personal access token (check the GitHub documentation on how to get this parameter)

Deployment parameters

In the template.yaml there are certain deployment parameters:

  • region: The AWS region in which the code is deployed
  • s3Bucket: The name of the S3 bucket in which the SQLite file is stored
  • tempFolder: The temp folder where to store the SQLite file while processing (for deployments to AWS Lambda, this should be set to /tmp)

Make targets

fdio-lambda has a Makefile that can be used for most of the operations

usage: make [target]
  • deps: Gets all dependencies for this app
  • clean : Removes the dist directory
  • build: Builds an executable to be deployed to AWS Lambda
  • test-lambda: Clean, builds and tests the code by using the AWS SAM CLI
  • deploy: Cleans, builds and deploys the code to AWS Lambda

About

Flogo Dot IO - Serverless App to create the showcase

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published