Giter Club home page Giter Club logo

hellogreengrassv2's Introduction

HelloGreengrassV2

Install and Run AWS Greengrass V2

Follow these instructions to install and run AWS Greengrass Core on Debian 10. This was tested with B&R Automation APC/PPC Industrial PC products and Debian 10 Buster.

Installation

Open an ssh session with the IPC

ssh <user>@<ip_address_of_device>

Update and upgrade (because you always do this):

sudo apt update && sudo apt upgrade

Add the users and groups:

sudo useradd --system ggc_user
sudo groupadd --system ggc_group

Add the cool stuff:

sudo apt install build-essential zlib1g-dev libncurses5-dev libgdbm-dev libnss3-dev libssl-dev libreadline-dev libffi-dev wget curl python3-pip -y

Install the AWS cli:

pip3 install awscli --upgrade

Install AWS Coretto 8 openjdk:

wget https://corretto.aws/downloads/latest/amazon-corretto-8-x64-linux-jdk.deb
sudo apt-get update && sudo apt-get install java-common
sudo dpkg --install amazon-corretto-8-x64-linux-jdk.deb
java --version

Add your environmental variables:

export AWS_ACCESS_KEY_ID=<ADDYOURACCESSKEYID>
export AWS_SECRET_ACCESS_KEY=<ADDYOURSECRETACCESSKEY>
export AWS_ACCOUNT_ID=<ADDYOURACCOUNTID>
export AWS_REGION=<ADDYOURREGION>

Download the Greengrass Core install files:

curl -s https://d2s8p88vqu9w66.cloudfront.net/releases/greengrass-nucleus-latest.zip > greengrass-nucleus-latest.zip && unzip greengrass-nucleus-latest.zip -d GreengrassCore

Install the Greengrass Core and create the deployment:

sudo -E java -Droot="/greengrass/v2" -Dlog.store=FILE -jar ./GreengrassCore/lib/Greengrass.jar \
--aws-region us-west-2 --thing-name <YOURCORENAME> --thing-group-name <YOURGROUPNAME> --component-default-user \
ggc_user:ggc_group --provision true --setup-system-service true --deploy-dev-tools true

Usage

See the YouTube link for usage.

License

MIT

hellogreengrassv2's People

Contributors

jessejamescox avatar

Stargazers

Erick Alcantar avatar

Watchers

Josh Polansky avatar  avatar James Cloos avatar Domonic Scism avatar

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.