- 最新
- 最多得票
- 最多評論
Hello,
Please see the "runWith" portion in https://docs.aws.amazon.com/greengrass/v2/developerguide/create-deployments.html.
"runWith" is configurable on a per-component basis. In order to set it, you set the "runWith" key in the deployment under that component's key. It is not configurable as part of the configurationUpdate section of a deployment.
If you wish to change the runWith user for all components and not just a single component, then you will do a configuration update for the aws.greengrass.Nucleus component instead. https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html#greengrass-nucleus-component-configuration
Cheers,
Michael
thank you very much, I cannot seem to set the runWith in the console....
Have tried 'create-deployment' using aws command but no solution
Where do I set this???
Thank you.
"components": {
"com.helmet-detection": {
"componentVersion": "1.0.18",
"runWith": {<------------> todo?}
}
},
Hi,
RunWith is settable in the console too. On the third page when creating a deployment you have a table listing the components to be deployed. Select the radio icon next to the component you wish to change, then click on the configure component button. At the bottom of the modal you can drop down advanced options and then change the runWith user.
Have a look at the API docs for setting the runwith using the CLI: https://docs.aws.amazon.com/greengrass/v2/APIReference/API_CreateDeployment.html
Cheers,
Michael
Thank you, found that....
Unfortunately the component is still being ran as ggc_user
2021-11-04T08:08:57.115Z [WARN] (Copier) com.helmet-detection: stderr. WARNING:tensorflow:From /home/ggc_user/.local/l
When I do aws greengrassv2 get-deployment I have this...
"com.helmet-detection": {
"componentVersion": "1.0.18",
"configurationUpdate": {
"merge": "{"runWith":{"posixUser":"jetson:ggc_group"}}"
},
"runWith": {}
}
Hi,
You still haven't set the runWith user correctly. You are still setting the "runWith" user as part of the "configurationUpdate", which is not correct; it is a separate key.
You must set runWith in the deployment as shown below.
"com.helmet-detection": {
"componentVersion": "1.0.18",
"configurationUpdate": {
},
"runWith": {"posixUser": "jetson:ggc_group"}
}
The point is, that the json I showed was created by the system after setting like
components": {
"com.helmet-detect": {
"componentVersion": "1.0.2",
"runWith": {
"posixUser": "jetson"
}
}
},
But I found out, that at the bottom left, there is a link, I never saw before, where we can enter a user...
This works.
相關內容
- 已提問 1 年前
- 已提問 5 個月前
- AWS 官方已更新 9 個月前
- AWS 官方已更新 9 個月前
- AWS 官方已更新 1 年前