Greengrass Recipe Variables in Component Configuration (Nucleus 2.7.0)

0

I’m attempting to use the recent Greengrass Nucleus feature to interpolate component configurations that include recipe variables. I have a Lambda component that subscribes to an MQTT topic with the thing name in the topic, e.g.:

"componentLambdaParameters": {
    "eventSources": [
        {
            "topic": "{iot:thingName}/suffix",
            "type": "IOT_CORE"
        }
    ]
}

This fails for me when a Core Device is receiving its first deployment that includes the Nucleus configuration along with the other components. The component configuration, as seen via the Greeengrass CLI, shows the un-interpolated value exactly as above. I wonder if it’s because the same deployment is also merging the "interpolateComponentConfiguration": true Nucleus option, such that the option hasn’t taken effect by the time the configuration for the Lambda component is consumed?

If I break it up into two deployments, one that deploys the Nucleus configuration update and all components that don't use the interpolation feature, and a followup deployment that adds the Lambda component with the configuration above, then it works.

Is there anything I can do to make it work as a single deployment?

asked 2 years ago691 views
2 Answers
1

Hi, currently you'd need to make two deployments as you've already described. Thanks for bringing this to our attention, we acknowledge that a single deployment should allow you to enable and use this feature, and will work on addressing this gap.

AWS
answered 2 years ago
  • Ah, thanks for the update! I'll keep an eye out for the next Nucleus version :)

0

Did this Nucleus feature make it into a release yet?

answered 4 months 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