Setting up AWS IoT Greengrass core devices
Complete the tasks in this section to install, configure, and run the AWS IoT Greengrass Core software.
Note
This section describes advanced installation and configuration of the AWS IoT Greengrass Core software. If you're a first-time user of AWS IoT Greengrass V2, we recommend that you first complete the getting started tutorial to set up a core device and explore the features of AWS IoT Greengrass.
Supported platforms and requirements
Before you begin, make sure you meet the following requirements to install and run the AWS IoT Greengrass Core software.
Tip
You can search for devices that are qualified for AWS IoT Greengrass V2 in the AWS Partner Device
Catalog
Supported platforms
AWS IoT Greengrass officially supports devices running the following platforms. Devices with platforms not included in this list might work, but AWS IoT Greengrass tests on only these specified platforms.
Linux platforms can also run AWS IoT Greengrass V2 in a Docker container. For more information, see Run AWS IoT Greengrass Core software in a Docker container.
To build a custom Linux-based operating system, you can use the BitBake recipe for AWS IoT Greengrass V2
in the meta-aws
projectmeta-aws
project provides
recipes that you can use to build AWS edge software capabilities in embedded Linux
Device requirements
Devices must meet the following requirements to install and run the AWS IoT Greengrass Core software v2.x.
Note
You can use AWS IoT Device Tester for AWS IoT Greengrass to verify that your device can run the AWS IoT Greengrass Core software and communicate with the AWS Cloud. For more information, see Using AWS IoT Device Tester for AWS IoT Greengrass V2.
Lambda function requirements
Your device must meet the following requirements to run Lambda functions:
-
A Linux-based operating system.
-
Your device must have the
mkfifo
shell command. -
Your device must run the programming language libraries that a Lambda function requires. You must install the required libraries on the device and add them to the
PATH
environment variable. Greengrass supports all Lambda supported versions of Python, Node.js, and Java runtimes. Greengrass doesn't apply any additional restrictions on deprecated Lambda runtime versions. For more information about AWS IoT Greengrass support for Lambda runtimes, see Run AWS Lambda functions. -
To run containerized Lambda functions, your device must meet the following requirements:
-
Linux kernel version 4.4 or later.
-
The kernel must support cgroups
v1, and you must enable and mount the following cgroups: -
The memory cgroup for AWS IoT Greengrass to set the memory limit for containerized Lambda functions.
-
The devices cgroup for containerized Lambda functions to access system devices or volumes.
The AWS IoT Greengrass Core software doesn't support cgroups v2.
To meet this requirement, boot the device with the following Linux kernel parameters.
cgroup_enable=memory cgroup_memory=1 systemd.unified_cgroup_hierarchy=0
Tip
On a Raspberry Pi, edit the
/boot/cmdline.txt
file to set the device's kernel parameters. -
-
You must enable the following Linux kernel configurations on the device:
-
Namespace:
-
CONFIG_IPC_NS
-
CONFIG_UTS_NS
-
CONFIG_USER_NS
-
CONFIG_PID_NS
-
-
Cgroups:
-
CONFIG_CGROUP_DEVICE
-
CONFIG_CGROUPS
-
CONFIG_MEMCG
-
-
Others:
-
CONFIG_POSIX_MQUEUE
-
CONFIG_OVERLAY_FS
-
CONFIG_HAVE_ARCH_SECCOMP_FILTER
-
CONFIG_SECCOMP_FILTER
-
CONFIG_KEYS
-
CONFIG_SECCOMP
-
CONFIG_SHMEM
-
Tip
Check the documentation for your Linux distribution to learn how to verify and set Linux kernel parameters. You can also use AWS IoT Device Tester for AWS IoT Greengrass to verify that your device meets these requirements. For more information, see Using AWS IoT Device Tester for AWS IoT Greengrass V2.
-
-
Feature considerations for Windows devices
Some AWS IoT Greengrass features aren't currently supported on Windows devices. Review the feature differences to confirm if a Windows device satisfies your requirements. For more information, see Greengrass feature compatibility by operating system.
Set up an AWS account
If you do not have an AWS account, complete the following steps to create one.
To sign up for an AWS account
Follow the online instructions.
Part of the sign-up procedure involves receiving a phone call and entering a verification code on the phone keypad.
When you sign up for an AWS account, an AWS account root user is created. The root user has access to all AWS services and resources in the account. As a security best practice, assign administrative access to a user, and use only the root user to perform tasks that require root user access.
To create an administrator user, choose one of the following options.
Choose one way to manage your administrator | To | By | You can also |
---|---|---|---|
In IAM Identity Center (Recommended) |
Use short-term credentials to access AWS. This aligns with the security best practices. For information about best practices, see Security best practices in IAM in the IAM User Guide. |
Following the instructions in Getting started in the AWS IAM Identity Center User Guide. | Configure programmatic access by Configuring the AWS CLI to use AWS IAM Identity Center in the AWS Command Line Interface User Guide. |
In IAM (Not recommended) |
Use long-term credentials to access AWS. | Following the instructions in Creating your first IAM admin user and user group in the IAM User Guide. | Configure programmatic access by Managing access keys for IAM users in the IAM User Guide. |