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"

gefragt vor einem Jahr287 Aufrufe
2 Antworten
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
beantwortet vor einem Jahr
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
EXPERTE
beantwortet vor einem Jahr

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen