How can i get a notification that a deployment has completed on greengrass device

0

I'd like to be able to get a notification in a greengrass component that a deployment version has been updated or revised - how might this be possible ?

majh
gefragt vor 4 Monaten117 Aufrufe
2 Antworten
0
Akzeptierte Antwort

Hi majh. I'm not clear what event you want to capture, but individual components can use this API to be notified about changes coming in a deployment: https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-component-lifecycle.html#ipc-operation-subscribetocomponentupdates

profile pictureAWS
EXPERTE
Greg_B
beantwortet vor 4 Monaten
  • Hi Greg - basically what I want to do is:

    • Query on the device what greengrass deployment (or deployments) are currently running.
    • So ideally I would be able to query some type of deployment status - rather than individual component status. Is something like this possible ?
    • Also would be good to be able to subscribe to some sort of status event, to get updates about deployments changing etc, so polling isn't necessary.
  • These are all the available event streams: https://docs.aws.amazon.com/greengrass/v2/developerguide/interprocess-communication.html#ipc-subscribe-operations. The events from SubscribeToComponentUpdates gives you the deployment ID. You could use HARD dependencies to make one of your components always be the last to be processed in a deployment. So it could be a proxy for the whole deployment.

0

Hi,

Here is the documentation explaining how you can configure notifications using AWS event bridge and Amazon SNS: https://docs.aws.amazon.com/greengrass/v2/developerguide/deployment-health-notifications.html

profile picture
EXPERTE
beantwortet vor 4 Monaten
  • Thanks for your response - but isn't this calling a backend API ? Isn't there any device side mechanism to get such notifications ?

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