AWS IoT Greengrass
Cloud service · AWS · Updated

AWS IoT Greengrass

In short

AWS IoT Greengrass is a software that extends cloud capabilities to local devices, enabling them to collect and analyze data closer to the source of information, while also allowing them to securely execute locally generated data and commands through AWS Lambda functions and manage data synchronization with the AWS cloud.

Cloud Services Hub →

10 key features of AWS IoT Greengrass

AWS IoT Greengrass enhances IoT applications by enabling local data processing, secure device communication, and edge machine learning capabilities, along with integrated device management and easy integration with AWS cloud services.

01
Local Data Processing

AWS IoT Greengrass enables devices to respond quickly to local events by providing the capability to process data closer to the source of information, thus reducing the need to constantly stream all data to the cloud.

02
Message Broker

Supports MQTT messaging between AWS IoT and components, local publish/subscribe messaging between components, and MQTT communication with local IoT devices on Linux and Windows.

03
Secure Device Communication

AWS IoT Greengrass ensures secure communications between devices and the cloud using certificate-based authentication and encrypted connections, providing a robust mechanism for data protection.

04
Stateful Applications

Supports the deployment of stateful applications across devices, enabling them to operate effectively even when they are disconnected from the Internet.

05
Edge Machine Learning

Facilitates the running of machine learning inference locally on devices, allowing for real-time decision making without the need for constant cloud connectivity.

06
Device Management

Provides an integrated set of tools to manage device software and monitor device health, making it easier to maintain a fleet of IoT devices.

07
Easy Integration with AWS Services

Seamlessly integrates with other AWS services, enabling advanced data processing, storage, analytics, and machine learning capabilities in conjunction with AWS IoT Core and AWS Lambda.

08
Component-Based Software Deployment

All software developed and deployed with Greengrass is modeled as a component. AWS provides prebuilt public components, and developers can create custom components locally or in the cloud and deploy them to one or multiple Core devices.

09
Component CPU and Memory Limits

With nucleus version 2.4.0 or later, CPU and RAM limits can be configured for generic and non-containerized Lambda components. These limits are not supported for nucleus, plugin, or containerized Lambda components, on Windows Core devices, or when Greengrass Core runs in Docker.

10
Encrypted Secrets

Greengrass supports deploying and accessing secure, encrypted secrets from AWS Secrets Manager on Linux and Windows, but not with nucleus lite.

Where AWS IoT Greengrass is used

AWS IoT Greengrass enables smart agriculture, industrial automation, smart home enhancements, healthcare monitoring, and energy management through real-time, local data processing and decision-making.

  1. 01
    Smart Agriculture

    AWS IoT Greengrass enables intelligent farming solutions by collecting and analyzing data directly from farm equipment and sensors in real-time. This allows farmers to make informed decisions about irrigation, seeding, and harvesting, optimizing crop yields while conserving resources.

  2. 02
    Industrial Automation

    In the manufacturing sector, AWS IoT Greengrass facilitates the deployment of predictive maintenance on industrial machinery, reducing downtime and increasing efficiency. It processes data on-site, enabling immediate response to operational data and trends without the latency that comes with cloud processing.

  3. 03
    Smart Home Devices

    AWS IoT Greengrass is used to enhance smart home ecosystems by processing data locally on smart devices, reducing response times for device commands and improving the user experience. It allows for the smart home devices to operate independently of the internet, ensuring functionality even when offline.

  4. 04
    Healthcare Monitoring Systems

    In healthcare, AWS IoT Greengrass supports remote patient monitoring systems by facilitating secure and real-time data processing at the edge. This enables healthcare providers to deliver timely care through continuous monitoring of patient health metrics without overwhelming cloud storage and processing resources.

  5. 05
    Energy Management

    AWS IoT Greengrass aids in optimizing energy usage in smart grids and buildings by locally processing data from IoT sensors. This data is used to make immediate adjustments to energy consumption, leading to reduced operational costs and improved sustainability practices.

How AWS IoT Greengrass is priced

AWS IoT Greengrass uses a pay-as-you-go model with an additional Free Tier for new users, charging based on devices connected and data processed by Lambda functions.

Pay-as-you-Go

Charges are based on the number of Greengrass Core devices that authenticate with AWS during a month. Devices that remain inactive for the month are not charged, and devices connecting locally to a Core incur no additional Greengrass charge.

Free Tier

The Free Tier includes the first three Greengrass Core devices that connect each month, free for one year.

Services AWS IoT Greengrass works with

AWS LambdaAWS Lambda

Allows execution of serverless functions on local devices, responding to events and triggering actions.

Amazon S3Amazon S3

Provides storage for IoT data that can be processed locally or sent to the cloud.

Amazon CloudWatchAmazon CloudWatch

AWS IoT Greengrass can upload core-device and component logs to CloudWatch Logs through its log manager component. Its CloudWatch metrics component and connector also publish custom metrics, such as device temperatures or processing counts.

Amazon Data FirehoseAmazon Data Firehose

AWS IoT Greengrass provides a Firehose connector that forwards locally collected messages to delivery streams. This lets an edge device send processed sensor readings to the destinations configured in Firehose.

Amazon EC2Amazon EC2

AWS IoT Greengrass Core software can run on an EC2 instance configured as a core device. This provides a cloud-hosted environment for developing and testing components and deployments before installing them on physical edge devices.

Amazon Elastic Container Registry (Amazon ECR)Amazon Elastic Container Registry (Amazon ECR)

AWS IoT Greengrass can deploy components that use container images stored in private ECR repositories. Its Docker application manager component handles authentication and image downloads so the containers can run on core devices.

Amazon EventBridgeAmazon EventBridge

AWS IoT Greengrass sends deployment status-change events to EventBridge. Rules can use these events to trigger notifications or automated responses when an edge deployment succeeds or fails.

What is AWS IoT Greengrass

3 min read

Amazon Web Services (AWS) IoT Greengrass is a service that extends AWS onto physical devices, allowing them to act locally on the data they generate while still using the cloud for management, analytics, and durable storage. This innovative service enables devices to respond quickly to local events, operate with intermittent connections, and minimize the cost of transmitting data to the cloud. Essentially, AWS IoT Greengrass brings cloud capabilities to the edge, offering a bridge between the physical world of devices and the vast computational and storage resources of AWS. 

AWS IoT Greengrass makes it possible for Internet of Things (IoT) devices to run AWS Lambda functions, Docker containers, or both, directly on the device itself. This gives devices the capability to perform data collection, processing, and analysis locally. Moreover, these devices can execute predictions based on machine learning models, which can be trained and refined in the cloud but deployed and executed at the edge. This dual operation model facilitates devices to take intelligent actions even when they are not connected to the internet. 

Greengrass also supports packaging and running software as native operating system processes or with custom runtimes.

Greengrass nucleus lite is another runtime option, offering a subset of the functionality available in Greengrass nucleus.

In Greengrass V2, a component recipe can be at most 16 KB, and the combined size of a component's artifacts can be at most 2 GB. Neither quota is adjustable.

Another key feature of AWS IoT Greengrass is its ability to securely communicate with other devices, managing and orchestrating device-to-device communication. This enables a new class of applications where devices can operate in concert, executing distributed data collection and analysis tasks without the need for constant cloud intervention. The secure nature of these communications is underpinned by AWS's industry-leading security protocols, ensuring that data remains protected from the edge to the cloud. Device synchronization is another important aspect of AWS IoT Greengrass. It ensures that IoT devices can continue to operate effectively even with intermittent cloud connectivity. When a device re-establishes a connection to the cloud, it can synchronize its state, ensuring that both the device and the cloud have the latest data and application states. This is crucial for maintaining the operational integrity of IoT applications that are deployed in environments with unreliable connectivity. 

Furthermore, AWS IoT Greengrass integrates smoothly with the broader AWS ecosystem, allowing developers to create holistic solutions that leverage other AWS services. This includes data warehousing with Amazon Redshift, analytics with Amazon Kinesis, and machine learning model training with Amazon SageMaker, amongst others. Such integration enables a seamless flow of data and insights from the edge to the cloud, facilitating sophisticated IoT solutions that are both powerful and scalable. 

In summary, AWS IoT Greengrass serves as a critical component in the IoT technology stack, allowing businesses and developers to bring the power of the AWS cloud to the edge. By doing so, it enables devices to act more autonomously, makes IoT applications more responsive and efficient, and provides a framework for developing sophisticated IoT solutions that leverage both local processing and the vast computational resources of the cloud.

Concepts related to AWS IoT Greengrass

AWS architecture icons are the property of Amazon Web Services. BlowStack is not affiliated with or endorsed by AWS.