How to send iot jobs like Amazon managed restart template to a greengrass core device
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.
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.
Jobs created with AWS Managed Templates currently work by default on all hardware/software platforms running the AWS IoT Device Client
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
Relevant questions
How to send iot jobs like Amazon managed restart template to a greengrass core device
Accepted Answerasked 3 months agoHow to connect an IoT Thing to Greengrass V2
asked a year agoGreengrass vs. IoT Core
asked 5 months agoAWS IoT Greengrass (V2) and Video Streaming
asked a month ago[Announcement] AWS IoT Greengrass v2 now supports the use of hardware security modules (HSM)
asked 6 months agoAWS IoT Greengrass (V2) Core Device - Management
Accepted Answerasked a month agoAWS IoT Greengrass (V2) Scheduling Deployment of Components
Accepted Answerasked a month agoUsing Token Exchange Service with aws-iot-device-sdk-js-v2 and greengrass
asked 7 months agoHow to implement authentication in AWs IoT Greengrass Component deployed to the Greengrass Core Device?
asked 2 months agoGreengrass v2 IPC IoT Core messaging limits
asked a year 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