2 Answers
- Newest
- Most votes
- Most comments
0
Kinda trying the same here: https://forums.aws.amazon.com/thread.jspa?threadID=336516&tstart=0
I don't think there is a way unless your lambda is pinned and "manually" subscribes to its corresponding IoT Core topic
answered 3 years ago
0
Hi knad,
Thank you for posting your question.
Unfortunately there isn't an easier way to use a dynamic topic as you described.
You could try either of the following:
- Use a wildcard in the topic.
- Use a pinned lambda and subscribe to it's corresponding topic.
- You could also explore creating a custom component https://docs.aws.amazon.com/greengrass/v2/developerguide/create-components.html instead of a lambda. You could then leverage the environment variables available to the component https://docs.aws.amazon.com/greengrass/v2/developerguide/component-environment-variables.html
Please let me know if either of these options work for you.
Thanks,
Navya.
answered 3 years ago
Relevant content
- Accepted Answerasked a year ago
- Accepted Answerasked 2 years ago
- asked 5 years ago
- AWS OFFICIALUpdated 4 months ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago