AWS Greengrass helper
Branch: master
Clone or download
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
cmd/gghelper Allow listgroup to lookup a specific group name (Fixes #7) May 19, 2018
example
.gitignore
LICENSE Initial release Jan 11, 2018
Makefile
NOTICE Initial release Jan 11, 2018
README.md Update README to use gghelper createdeployment Jan 16, 2018
RELEASE.md Add RELEASE.md file Jan 11, 2018
archive.go
create.go Add listgroup command Jan 11, 2018
deleteregion.go Initial release Jan 11, 2018
deploy.go
ggconfig.go Initial release Jan 11, 2018
ggconfig_test.go
group.go Allow listgroup to lookup a specific group name (Fixes #7) May 19, 2018
groupconfig.go Add deployment commands Jan 16, 2018
lambda.go Fix memory size adjustment Jan 11, 2018
role.go
session.go Initial release Jan 11, 2018
subscription.go Initial release Jan 11, 2018

README.md

gghelper - AWS Greengrass helper

This is a commandline tool to assist in setting up AWS Greengrass installations.

Workflow

A typical workflow is:

  1. Create a Greengrass group

    gghelper creategroup -name test
    
  2. The output of the creategroup will be a tar file containing the certificates and configuration for the Greengrass Core. This should be transferred onto the GGC system and unpacked:

    tar xzf 5d7b82589d-setup.tar.gz -C /greengrass
    
  3. The GGC can be started with this configuration.

    (cd /greengrass/ggc/core; sudo ./greengrassd start)
    
  4. Add in a lambda function

    gghelper lambda -pinned -d dist -handler hello_vsphere.hello_vsphere_handler -name HellovSphere -role lambda-test-get -runtime python2.7
    
  5. Create a subscription between the function and cloud

    gghelper createsub -source HellovSphere -target cloud -subject "hello/vsphere"
    
  6. Make a deployment to download config and code to the Greengrass core

    gghelper createdeployment
    
  7. Going to the Greengrass Test page, create a subscription (using # will get all the messages) to see the function run periodically every 5 seconds.

Credits

This project was sponsored by VMware. And inspiration and some compatibility by the AWS Labs aws-greengrass-group-setup.