Skip to content

(Nucleus): Configuration update via IPC doesn't trigger bootstrap script #1726

@kkurczewski

Description

@kkurczewski

Describe the bug
As per docs changing component configuration is supposed to trigger bootstrap.

However changing configuration via IPC doesn't trigger bootstrap. This is inconsistent.

Restarting component or whole Greengrass doesn't fix issue. Bootstrap script is not triggered.

To Reproduce

Example recipe would look like this:

bootstrap:
  Setenv:
    HOME_PATH: "{configuration:/HomePath}"
  Script: |
    cd "$HOME_PATH" && ls

Additionally in run/start section there should be script/app that uses AWS SDK to update config value for HomePath.

Expected behavior

Update configuration via IPC should behave consistently like regular remote/local deployment and should trigger bootstrap (if affected).

Actual behavior

Bootstrap script is not triggered which breaks particular component.

Environment

  • Nucleus version: latest

Additional context

Basically, I want to create component that is able to restart Greengrass (or machine) on demand (for various reasons). Ideally component should not use privileged user and rely just on on Greengrass access policy (for Restart/Update configuration).

What I considered:

  • Restarting component via IPC is not enough because it doesn't trigger Nucleus restart.
  • Greengrass CLI is not viable option
    1. it gives shell API whereas I'm interested in programmatic access
    2. it gives too broad privileges (local deployments)
    3. my component is intended for production setup for which Greengrass CLI is not advised

Similar use case:
#1331

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationImprovements or additions to documentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions