Setting Up AWS IoT Greengrass On Amazon EC2: Everything You Need To Know
How to properly configure an EC2 instance to run a Greengrass Deployment to use as a development environment.
Run Lambda functions locally and save time and money by using this open-source solution for IoT devices.
This blog was originally written and published by Trek10, which is now part of Caylent.
AWS IoT Greengrass is “an open-source edge runtime and cloud service for building, deploying, and managing device software”. Put simplistically, it is a compute service that you can run on edge/IoT devices and manage from the AWS Cloud; it is often used to configure and deploy the software that runs on gateways sitting between IoT devices and the cloud. Greengrass is made up of two key components.
First, let’s discuss the Greengrass edge runtime, which is AWS software that runs on Linux/Windows environments. The runtime is composed of modules called “components”, which are independent application services running on a device. Components are further subdivided in two parts: artifacts and recipes—the first containing the component code and the second the configuration.
Second, there is the cloud service which provides tools to manage edge/IoT devices by allowing users to create, update and deploy application components, grouping devices, and interacting with other AWS Services (like Amazon CloudWatch Logs) to monitor device events without accessing the local file system, among others.
AWS IoT Greengrass provides a lot of capabilities to IoT and Edge devices out of the box. Thanks to its modular philosophy (meaning that AWS Greengrass models all the software pieces that are developed and deployed as components), components can represent applications, libraries, or any code that you would run on a device. AWS and the community have developed some components to provide your device with several cool features like:
You can also write your custom components to match specific requirements on your local device or in the cloud. You can find more information about custom component development here.
You should use AWS IoT Greengrass when you need to extend AWS services and capabilities to the edge. Whether it’s connecting a manufacturing floor to the cloud for data ingestion, managing IoT Gateways, or making a machine learning model available for local inference, Greengrass has dozens of features and capabilities to run your workload at the edge and centrally manage it from AWS.
There are some device requirements you must consider to install and run AWS Greengrass so ensure your device meets them prior to developing your edge/IoT application:
AWS IoT Greengrass is generally affordable. It costs $0.16 a month per device as long as it is authenticated with AWS within a month. If the device runs standalone without communicating to AWS, the cost is $0. Take into account that any other service(s) the device uses will be charged as the service pricing defines it. For a piece of more detailed pricing information, visit AWS IoT Greengrass Pricing.
Founded in 2013, Trek10 helped organizations migrate to and maximize the value of AWS by designing, building, and supporting cloud-native workloads with deep technical expertise. In 2025, Trek10 joined Caylent, forming one of the most comprehensive AWS-only partners in the ecosystem, delivering end-to-end services across strategy, migration and modernization, product innovation, and managed services.
View Trek10's articlesHow to properly configure an EC2 instance to run a Greengrass Deployment to use as a development environment.
Go beyond lift-and-shift: Re-platform your AWS IoT Greengrass V1 apps to V2 with this guide covering key architectural changes and a starter migration plan.
Continuing a journey into AWS IoT, this post examines how to use IoT Core rules to format and route messages to destinations within the AWS ecosystem.
Caylent Catalysts™
Connect, understand, and act on data from industrial devices at scale to improve uptime, efficiency, and reliability across manufacturing, energy, and utilities.
Caylent Services
Reliably Operate and Optimize Your AWS Environment
Caylent Services
Quickly establish an AWS presence that meets technical security framework guidance by establishing automated guardrails that ensure your environments remain compliant.