deploy a component to delete this core device

0

core device name: device0 component name: component0

Desired effect: deploy component0 to device0, and will delete device0

how to set component0

I can't delete the core device when I use this command in the component0: "aws greengrassv2 delete-core-device --core-device-thing-name $name"

질문됨 일 년 전288회 조회
2개 답변
0

Hello,

Greetings!

Please find the answer to your query mentioned below: As you might be aware, the following command is used to Delete a Greengrass core device, which is an AWS IoT thing. This operation removes the core device from the list of core devices. aws greengrassv2 delete-core-device —core-device-thing-name MyGreengrassCore

To delete a core device with the AWS Command Line Interface, use the DeleteCoreDevice (https://docs.aws.amazon.com/greengrass/v2/APIReference/API_DeleteCoreDevice.html ) operation. This link will also help you in case you are facing HTTP status code errors, while running the command.

I would also recommend to try to delete the device using the AWS IoT Greengrass console. Kindly refer to the point no 3 mentioned in the following link. [+] https://docs.aws.amazon.com/greengrass/v2/developerguide/uninstall-greengrass-core-v2.html

That being said, I hope the above provided information is helpful. Thank you and have a nice day ahead!

AWS
답변함 일 년 전
0

The command you are using is the right one, assuming you to set the right permissions on the TES role assigned to the Greengrass Core device.

This said, what you are trying to do will not have any effect as long as Greengrass core device is connected to the Internet, since the core device will be recreated as soon as Greengrass reports the status of the deployment.

Can you share the reason why you are trying to delete the Greengrass core device from cloud?

AWS
전문가
답변함 일 년 전

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

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

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