Skip to content

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

asked 4 years ago847 views
2 Answers
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 4 years ago
0

Thanks for the response, unfortunately I'm not understanding. All I am trying to do is restart or start the greengrass core device after it's already be running and provisioned. When I restart it (or it's stopped and I start it up, it deletes the certificates so it no longer works properly. It's running in a docker container but I don't think that would matter except that there is no separate service process that it runs under.

answered a year 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.