- Newest
- Most votes
- Most comments
Let me first address the first part of your question around the development workflow. The Greengrass Development SDK GDK addresses most of the problems you mention:
- The GDK automates the packaging, S3 upload and component registration in AWS IoT, and can also automatically increment the component version if you want by setting the
version
value toNEXT_PATCH
GDK CLI configuration file - It supports also local deployments, the GDK packages the component into the local project folder
greengrass-build
before upload. When you create the local deployment with the Greengrass CLI, specifygreengrass-build/recipes
as the recipes folder andgreengrass-build/artifacts
as the artifacts folder. If you want to use local deployments, don't set the component version toNEXT_PATCH
but use a semantic version number.
For the second part of your questions, I'm not aware of any IDE integration to streamline the Greengrass development. Greengrass expose a local component and management API over IPC. So technically it is feasible to create such an IDE plugin.
To debug your component code just follow the instructions of your preferred IDE to attach the debugger to a running process. In Visual Code for example, you just modify the Component recipe and launch your python script like this:
python3 -m debugpy --listen 5678 --wait-for-client -u {artifacts:decompressedPath}/HelloWorld/main.py
This will launch your component script in debug mode using debugpy , and you can now attach the VC IDE debugger to your component process on port 5678.
This is really helpful. Is there an example on how to pull existing components and start publishing them from the CLI? Do you need to make the dev PC an edge device as well with GG installed?
Relevant content
- asked 2 years ago
- asked 2 years ago
- AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
- How can I resolve the "ERROR: ˂module/extension˃ must be loaded via shared_preload_libraries" error?AWS OFFICIALUpdated 10 months ago
- AWS OFFICIALUpdated 2 years ago
This is really helpful. Is there an example on how to pull existing components and start publishing them from the CLI? Do you need to make the dev PC an edge device as well with GG installed?