- Newest
- Most votes
- Most comments
Unfortunately, AWS IoT Greengrass deployments do not directly support targeting a specific thing type within a thing group. The deployment target is typically either a single thing (device) or an entire thing group.
However, you can achieve a similar result by using a combination of AWS IoT features and Greengrass deployment strategies:
-
Create a dynamic thing group: Instead of using your existing static "PrototypeDevices" group, you can create a dynamic thing group that automatically includes devices based on their attributes, including thing type. This way, you can have a group that only contains devices of a specific type within your prototype devices.
-
Use this dynamic group as your deployment target: Once you have a dynamic group that includes only the devices of the specific type you want to target, you can use this group's ARN as the
targetArn
in your Greengrass deployment.
For example, you could create a dynamic group that includes all devices of a certain type within your "PrototypeDevices" group, and then use that dynamic group as the target for your deployment.
This approach allows you to effectively target a subset of devices within your original group based on their thing type, without having to manually manage the group membership or create separate deployments for each device type.
Remember to carefully manage your thing attributes and dynamic group queries to ensure you're targeting the correct devices. Also, keep in mind that changes to thing attributes or types will automatically affect group membership and, consequently, your deployments.
Sources
Create deployments - AWS IoT Greengrass
/greengrass/groups/GroupId/deployments - AWS IoT Greengrass
Relevant content
- asked 5 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 2 years ago
- AWS OFFICIALUpdated a year ago
- AWS OFFICIALUpdated a year ago
- How do I use the Microsoft KB number in Patch Manager to install a specific patch or set of patches?AWS OFFICIALUpdated a year ago