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
asked 2 years ago465 views
1 Answer
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
answered 2 years ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions