Greengrass Core V2 - Restart component on config change

0

Hi,

After making a change to a component's config and then deploying this via GG V2 deployment, how can I trigger the component to restart automatically so it picks up the new configuration?

Many thanks in advance

cgddrd
demandé il y a 2 ans480 vues
1 réponse
1

Any configuration which is interpolated into the "lifecycle" section of the recipe will cause the component to reinstall. You can achieve this by interpolating the configuration into environment variables using "setEnv" key for example. If you're using IPC to read the configuration, then ideally you would subscribe to configuration changes and reconfigure without needing to restart. https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-component-configuration.html#ipc-operation-subscribetoconfigurationupdate

AWS
EXPERT
répondu il y a 2 ans

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