- Newest
- Most votes
- Most comments
The issue you're facing is due to conflicting version constraints between the thing group deployment and the individual thing deployment. AWS IoT Greengrass V2 allows only one active deployment per target (thing or thing group) at a time. When you create a new deployment for a target that already has an existing deployment, the new deployment replaces the previous one.
To handle your requirement of deploying a new version to a single device before rolling it out to the entire group, you can follow these steps:
-
First, remove the device (device1) from the thing group (device-group). This will prevent the device from receiving the group-level deployment.
-
Create a new deployment targeting the individual device (device1) with the new component version (2.0.0).
-
After validation and confirmation that everything is working fine on device1, you can proceed with updating the deployment for the thing group.
-
Create a new deployment for the thing group (device-group) with the updated component version (2.0.0).
-
Add device1 back to the thing group. It will now receive the same deployment as the rest of the group.
This approach allows you to test the new version on a single device without affecting the other devices in the group. It also avoids the version constraint conflict you encountered.
Remember that when you create a new deployment for a target that already has a deployment, the components in the new deployment replace those from the previous deployment. If you want to keep other components that were part of the previous deployment, make sure to include them in your new deployment configuration.
Also, note that deployments to thing groups are continuous. This means that when you add a core device to a thing group, it automatically receives the software configuration for that group. This feature can be useful when managing deployments across multiple devices.
Sources
Differences between AWS IoT Greengrass V1 and AWS IoT Greengrass V2 - AWS IoT Greengrass
Create deployments - AWS IoT Greengrass
Revise deployments - AWS IoT Greengrass
Relevant content
- asked 3 months ago
