How to send iot jobs like Amazon managed restart template to a greengrass core device

1

Hello,

I recently onboarded one of 30 rpi's which acts like a streaming device using KVS ont aws iot Greengrass v2. I have tried with custom components and deploying them and all works fine but when i create a custom job like Amazon managed templates for rebooting the device, the greengrass is not recieving anything and the job stays in Queued State forever. I am trying to post a Snapshot type job. Any help is appreciated.

1 Answer
0
Accepted Answer

Hi Subham. Unfortunately, Greengrass doesn't currently support AWS Managed Templates for IoT Jobs out of the box. They have been made with AWS IoT Device Client in mind.

https://aws.amazon.com/about-aws/whats-new/2021/11/aws-managed-templates-iot-jobs-deploy-operations-iot-fleets/

Jobs created with AWS Managed Templates currently work by default on all hardware/software platforms running the AWS IoT Device Client

https://docs.aws.amazon.com/iot/latest/developerguide/job-templates-managed.html#job-template-managed-prereq

We recommend that you install and run the AWS IoT Device Client on your devices because it supports using all managed templates directly from the console by default.

You can see the AWS IoT Device Client managed template handers here: https://github.com/awslabs/aws-iot-device-client/tree/main/sample-job-handlers

You could certainly develop a GGv2 component to work with these templates. Another alternative to consider, that can provide similar management capabilities, is the Greengrass Systems Manager Agent:

https://docs.aws.amazon.com/greengrass/v2/developerguide/systems-manager-agent-component.html https://docs.aws.amazon.com/greengrass/v2/developerguide/manage-with-systems-manager.html

profile pictureAWS
EXPERT
Greg_B
answered 2 years ago
  • Hello Greg_B, thank you for the response. I did try with amazon-device-client but the simple reboot.sh handler didn't seem to work, the device didn't get rebooted. Regarding aws system manager i will definitely go through it sometime later. Thanks in advance

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions