How to rollback a completed Greengrass component deployment

0

I have deployed a custom component on a windows machine. This component just runs a jar file on windows box. Deployment shows completed. I am trying to find a way now to stop that running java application. Is there any way to rollback a completed deployment in Greengrass. My another use case would be to install an exe file on windows machine using Greengrass component. How do I uninstall that application using Greengrass.

demandé il y a un an338 vues
1 réponse
1

Hi. You can un-deploy a component in the same way as you deploy one. Revise the last deployment, remove the component, then deploy.

Uninstalling an exe file is trickier because Greengrass components don't have an Uninstall lifecycle. Add your voice here if you would like this feature: https://github.com/aws-greengrass/aws-greengrass-nucleus/issues/814. So you probably would need to manage the uninstall from the run state. In general though, you should be cautious about performing system wide changes from a component. Systems Manager might be a better choice.

profile pictureAWS
EXPERT
Greg_B
répondu il y a un an
  • I tried to install Systems Manager components on my core device but the deployment fails with below error. Error COMPONENT_VERSION_REQUIREMENTS_NOT_MET: FAILED_NO_STATE_CHANGE: An error occurred while negotiating component version with cloud. The version of component requested does not claim platform compatibility. Check whether the platform constraints conflict and that the component platform mentioned in the recipe matches the platform constraints. If the platform constraints conflict, revise deployments to resolve the conflict. Component aws.greengrass.SystemsManagerAgent claimed platform: os windows, architecture amd64. Error code hierarchy • DEPLOYMENT_FAILURE • NO_AVAILABLE_COMPONENT_VERSION • COMPONENT_VERSION_REQUIREMENTS_NOT_MET

    Greengrass Developer Guide, version 2 mentioned a note that "AWS IoT Greengrass doesn't currently support this feature on Windows core devices." But the AWS Systems Manager Documentation says Windows Server is supported. Have you ever used Systems Manager component on windows greengrass core devices?

Vous n'êtes pas connecté. Se connecter pour publier une réponse.

Une bonne réponse répond clairement à la question, contient des commentaires constructifs et encourage le développement professionnel de la personne qui pose la question.

Instructions pour répondre aux questions