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.

已提問 2 年前檢視次數 822 次
1 個回答
0
已接受的答案

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
專家
Greg_B
已回答 2 年前
  • 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

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南