Why Greengrass?
Each ESP32-S3
Espressif ESP32-S3 — Wi‑Fi microcontroller used here as the Greengrass client device (not a second core). has an IoT certificate. You can
publish straight to IoT Core
AWS IoT Core — cloud MQTT and device identity service. Client devices use it for discovery; the MQTT bridge forwards zone topics here, where IoT rules route them to other AWS services., or connect to a
local Greengrass core first. This lab uses the hub.
Topologies
Section titled “Topologies”Direct IoT Core
Each board talks to the cloud; decisions run in the cloud or on every MCU.
Greengrass hubthis lab
Boards decide on the LAN via the core; cloud mirror is optional.
- Direct: fewer moving parts; no local decisions if the cloud is unreachable.
- Hub: closed loop on the LAN, shared components — but the core is a single point of failure.
Tradeoffs
Section titled “Tradeoffs”| Need | Direct IoT Core | Greengrass hub |
|---|---|---|
| Local decide with cloud down / high RTT | Fails or needs on-device logic | Closed loop |
| Many boards, one place for policy / ML | Logic in cloud or on every MCU | Components on the core |
| Cloud-managed edge software versions | Device OTA only | Component |
| Simplest cloud MQTT telemetry | Fewer moving parts | Extra Nucleus + broker stack |
| Hub host dies | Boards can still reach cloud (if online) | Local path through that core is a single point of failure |
Single point of failure
Section titled “Single point of failure”One Nucleus
Greengrass Nucleus — the edge runtime on the core device. Installs components, talks to AWS, and hosts the local client-device stack. +
Moquette
aws.greengrass.clientdevices.mqtt.Moquette — local MQTT broker on the core. Not Mosquitto; client devices connect here over mTLS. on one NUC is a SPOF for local MQTT
and for components that decide there. This walkthrough does not build multi-core
HA.
Nucleus lite
Section titled “Nucleus lite”AWS also offers Nucleus lite for constrained hosts. This lab uses classic Nucleus on Ubuntu x86. See the developer guide if you need lite later.
Next: Identities.