green-world

A sample Greengrass application responding with a `world` message to a `hello` lambda.

Usage no npm install needed!

<script type="module">
  import greenWorld from 'https://cdn.skypack.dev/green-world';
</script>

README

green-world

A sample Greengrass application responding with a world message to a hello lambda.

Green application CodeFactor

Current version: 1.1.7

Lead Maintainer: Halim Qarroum

Table of contents

Install

green add npm://green-world

Description

This application is a sample lambda function for AWS Greengrass used to demonstrate how to deploy Green Applications and their associated dependencies using the green-cli package manager.

It is an on-demand lambda function, meaning that it only runs when it receives a message from another comnponent in the system. Upon reception of a message, green-world will send a message on the green/world topic using the following payload.

{ "message": "world", "by": "${received-payload}.from" }

Deployment

The green-world sample application has no dependencies and creates a uni-directional subscription between itself and the IoT Core message broker on the cloud on the green/world topic. Use the green-cli command-line deployment tool to deploy green-world as stated in the Installation section.

See also