The AWS Greengrass Core SDK for JavaScript allows developers to write JavaScript Lambda functions that will run within Greengrass. This document provides instructions for preparing your Greengrass Core environment to run Lambda functions written in JavaScript. It also includes examples on how to develop a Lambda function in JavaScript as well as packaging and running an example Hello World file in JavaScript for your Greengrass core. The environment where Greengrass is running on needs to be able to run NodeJS 12.x applications. Unzip the SDK into your node_modules folder of your function. This should create a aws-greengrass-core-sdk folder which includes the SDK. Your console.log operation will be logged as INFO. A console.error operation will be logged as error. Currently, our NodeJS SDK only allows you to log at info or error level only.

Features

  • In Greengrass, you can send a context object in a JSON format to be passed to another Lambda that is being invoked
  • Stream manager supports automatic data export to AWS S3 and AWS IoT SiteWise
  • Provides new API method to update existing streams, and pause or resume exporting
  • Added support for StreamManager
  • Choose any role as the role is not used within Greengrass
  • Unzip the SDK into your node_modules folder of your function

Project Samples

Project Activity

See All Activity >

Categories

Cloud Services

License

Apache License V2.0

Follow AWS Greengrass Core SDK for JavaScript

AWS Greengrass Core SDK for JavaScript Web Site

Other Useful Business Software
Forever Free Full-Stack Observability | Grafana Cloud Icon
Forever Free Full-Stack Observability | Grafana Cloud

Our generous forever free tier includes the full platform, including the AI Assistant, for 3 users with 10k metrics, 50GB logs, and 50GB traces.

Built on open standards like Prometheus and OpenTelemetry, Grafana Cloud includes Kubernetes Monitoring, Application Observability, Incident Response, plus the AI-powered Grafana Assistant. Get started with our generous free tier today.
Create free account
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of AWS Greengrass Core SDK for JavaScript!

Additional Project Details

Programming Language

JavaScript

Related Categories

JavaScript Cloud Services Software

Registered

2022-07-08