- Newest
- Most votes
- Most comments
Thank you for reaching out. Please adhere to the standard semantic versioning format. For our system, the maximum allowed value for each component (major, minor, and patch) is 999999. Will bring this up with the team to ensure our documentation is updated accordingly.
answered a year ago
In AWS IoT Greengrass V2, component versioning follows specific rules that can be confusing when trying to automate development builds.
The issues you encountered highlight the constraints of Greengrass component versioning:
-
For version numbers like
1.2.20250602121212, you likely hit an integer overflow because the patch number was too large. Greengrass expects semantic versioning with reasonable integer values. -
With
1.2.3-dev1, you were able to publish to the console but encountered download issues because Greengrass has different validation rules at different stages of the component lifecycle. -
For
dev-1, this format doesn't follow the required semantic versioning pattern that Greengrass expects.
The recommended approach for versioning pre-release development builds in Greengrass V2 is to:
- Use standard semantic versioning (major.minor.patch) with reasonable integer values
- Increment the version number for each new deployment, even if the code hasn't changed
- For development builds, consider using a sequential numbering approach with small integers, such as incrementing the patch version (e.g., 1.0.1, 1.0.2, etc.)
When you need to force a component restart without code changes, you can:
- Increment the component version
- Update the component's environment variables using the
Setenvconfiguration in the recipe - Use the Greengrass CLI to restart components during development (not recommended for production)
These approaches provide reliable ways to manage component versions while avoiding the validation issues you encountered.
Sources
How do I redeploy the same deployment config in Greengrass v2 | AWS re:Post
Deploy AWS IoT Greengrass components to devices - AWS IoT Greengrass
Troubleshooting AWS IoT Greengrass V2 - AWS IoT Greengrass
answered a year ago
Relevant content
asked a year ago
asked 5 years ago

Thanks for your acknowledgement. I did try use standard semver
1.2.3-rc1and this did throw an error at one stage, as the-rc1was not supported.