- 最新
- 投票最多
- 评论最多
You should explore to develop AWS IoT Greengrass components [1] and update your application to be deployed as a component. Every component is composed of a recipe and artifacts. The recipe file defines the component‘s metadata. This includes the component’s configuration parameters, component dependencies, lifestyle, and platform compatibility. The lifecycle defines the commands to install, run, and shut down the component. It can be defined in YAML and JSON format. Artifacts are optional and consist of component binaries and may include scripts, compiled code, static resources, and any other files that a component consumes. Refer to 5 tips to build AWS IoT Greengrass v2 Components [2]
There is also a sample workshop/tutorial which you can refer and see if you can utilize for your app [3]
Hi,
if you have installed Greengrass on the machine, you should be able to run your application as a component with the same permissions and user requirements that you would use in case you were running the application directly from the host.
By default components in Greengrass are executed by ggc_user:ggc_group
or whatever user and group was specified during the AWS Greengrass core software installation.
This user and group can also be overridden during deployment on a component by component basis, by specifying an alternative user and group as part of the component configuration (see https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html - runWith
).
In the console (as part of the deployment wizard):
Cheers,
Massimiliano
Can you explain how to lauch application from components? I have the same questiong, I'm using zigbee2mqtt aplication on edge, which runs in port 8080, It would like wonderful if we would are able to access in remote mode. Would it be possible? Regards!
相关内容
- AWS 官方已更新 4 个月前
- AWS 官方已更新 1 年前
- AWS 官方已更新 1 年前
As I'm unable to use sudo in Linux, is there any other way to do so? Sorry for forgetting to mention that!