Another way to fulfill your use case is to have the "other" component to watch the config file. This is similar to the IPC solution but with this approach you are not limited to the programming languages supported by the Greengrass SDK.
Using the CLI is the only way to restart a component at this time. Assuming that you control the code in the component which is reading the configuration file, you could update it such that it calls
exec to create a new instance of itself with the updated configuration. Even more ideally, it could be written to dynamically update based on configuration changes, for example by using our configuration subscription IPC https://docs.aws.amazon.com/greengrass/v2/developerguide/ipc-component-configuration.html#ipc-operation-subscribetoconfigurationupdate.
Hi , apologies for the delay on this follow up -
The documentation for the greengrass-cli component has a configuration for "AuthorizedPosixGroups". If I explicitly add the user (ggc_user) to this group, will I be able to invoke the restart command from another component without using any of the workarounds suggested?
Running greengrass-cli from a greengrass component; what's going on here?asked 7 months ago
Can a component in greengrassv2 receive a notification from a pre update applied to another component in the same deployment?asked 16 days ago
Greengrass V2: Have component reload latest configuration settings upon new deployment.Accepted Answerasked a month ago
Lambda component with IPC permissions in Greengrass V2Accepted Answerasked 9 days ago
Best way to restart a Greengrass component, from another component
Restarting a Greengrass component with a container creates two instances of that containerAccepted Answer
Different GreenGrass v2 component configurations depending on tevice tagAccepted Answerasked 8 months ago
Greengrass Core V2 - Restart component on config changeasked 6 months ago
AWS Greengrass - Erro with public component versionAccepted Answerasked 2 months ago
how to auto deploy an updated greengrass componentAccepted Answerasked 4 months ago