Git Product home page Git Product logo

balena-greengrass's Introduction

AWS IoT Greengrass (WIP)

AWS IoT Greengrass integration with balenaOS. This project objective is to run Amazon's IoT Greengrass software on a docker container to enable running AWZ lambda functions on a balenaOS device.

Current status

This project is still a work in progress.

Currently this project is able to:

  • Install AWS Greengrass pre-requisites
  • Run AWS Greengrass daemon (able to sync over MQTT)

AWS daemon crashes when receiving a lambda deployment. Further work is required in order to have a working MVP integration.

Install instructions

  1. Configure AWS IoT as detailed on this developer guide. Only the steps related to AWS IoT dashboard work are required.
  2. Download your AWS IoT Core security resources as detailed here and store the <ID-setup>.tar.gz file on the downloads directory.
  3. Edit Dockerfile.template file with the correct name for the security resources (i.e: RUN tar -xzvf downloads/35ac2e76c2-setup.tar.gz -C /greengrass)
  4. Run balena push <YOUR_BALENA_APP> (getting started with balena)

balena-greengrass's People

Contributors

tmigone avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

komikoni

balena-greengrass's Issues

Wrong region being used

Hey Tomas,

I was just setting up everything in the IoT console for Greengrass and couldn't detect any connection from my core device, so I ssh'd into the core and checked the logs and noticed it was failing to get a broker connection. From the logs the config is stated as:

[2020-01-22T00:43:37.52Z][DEBUG]-CoreThing Connection Config:
{
"Region": "us-east-1",
"ThingArn": "arn:aws:iot:us-east-1:753958714070:thing/Balena_Core",
"IoTMQTTEndpoint": "a2n7ue1pyspgxx-ats.iot.us-east-1.amazonaws.com:8883",
"IoTHTTPEndpoint": "a2n7ue1pyspgxx-ats.iot.us-east-1.amazonaws.com:8443",
"GGMQTTPort": 8883,
"GGHTTPEndpoint": "greengrass-ats.iot.us-east-1.amazonaws.com:8443",
"GGMQTTKeepAlive": 600,
"GGMQTTMaxConnectionRetryInterval": 60,
"GGMQTTConnectTimeout": 30,
"GGMQTTPingTimeout": 30,
"GGHTTPTimeout": 60,
"FIPSMode": false,
"CoreClientId": ""
}

...which is very odd, because that's not what is in the .tar file in the downloads folder which I just pushed to the device.

Could this be using a casched version (I was using east-1 yesterday, but today I'm using west-2), and if so how would I clear that?

Thanks,
Paul

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.