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

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ