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"

posta un anno fa288 visualizzazioni
2 Risposte
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
con risposta un anno fa
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
ESPERTO
con risposta un anno fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande