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.

質問済み 1年前322ビュー
1回答
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
エキスパート
Greg_B
回答済み 1年前
  • 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?

ログインしていません。 ログイン 回答を投稿する。

優れた回答とは、質問に明確に答え、建設的なフィードバックを提供し、質問者の専門分野におけるスキルの向上を促すものです。

質問に答えるためのガイドライン

関連するコンテンツ