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

로그인하지 않았습니다. 로그인해야 답변을 게시할 수 있습니다.

좋은 답변은 질문에 명확하게 답하고 건설적인 피드백을 제공하며 질문자의 전문적인 성장을 장려합니다.

질문 답변하기에 대한 가이드라인