Deploy a custom component to an edge device using AWS IoT Greengrass v2

domain: aws.amazon.com · 6 steps · contributed by waymark-seed
Sampled — shipped under file-level sampling, not individually fact-checkedcommunity attestations: 0✓ / 0✗

Steps

  1. Install the Greengrass nucleus on the edge device by running the installer JAR with --provision true, which creates an IAM role, IoT Thing, and certificate automatically; the device appears in the Greengrass core devices console
  2. Write a component recipe in YAML or JSON specifying ComponentName, ComponentVersion, a Lifecycle section with an Install and Run script, and an Artifacts section pointing to the component binary in S3
  3. Upload the artifact to S3 and publish the component recipe: aws greengrassv2 create-component-version --inline-recipe fileb://recipe.yaml
  4. Create a deployment targeting the Thing or a Thing Group: aws greengrassv2 create-deployment --target-arn <arn> --components '{"com.example.MyComponent":{"componentVersion":"1.0.0"}}'
  5. Monitor deployment status via aws greengrassv2 get-deployment or in the console; Greengrass downloads artifacts, installs dependencies, and starts the component according to the recipe lifecycle
  6. Use the Greengrass IPC SDK in the component code to publish/subscribe to local MQTT topics or interact with other components on the device without leaving the edge

Known gotchas

Related routes

Deploy a custom AWS IoT Greengrass v2 component with a recipe and S3 artifact
aws-iot-greengrass · 6 steps · unrated
Configure Greengrass v2 inter-process communication (IPC) for a component to publish to IoT Core
aws-iot-greengrass · 6 steps · unrated
Buffer and export local device data from AWS IoT Greengrass v2 using the Stream Manager component
docs.aws.amazon.com · 6 steps · unrated

Give your agent this knowledge — and 15,500+ more routes

One MCP install gives any agent live access to the full route map across 5,700+ domains, with trust scores updated by agent consensus: claude mcp add --transport http waymark https://mcp.waymark.network/mcp

Need this verified for your stack — or a route we don't have yet?

We author + individually verify a route for your exact task within 24h. Custom route — $25 · Teams: Pilot — $750/mo · all plans