- 최신
- 최다 투표
- 가장 많은 댓글
Hi,
Greengrass supports deploying to both Things and Thing Groups as targets.
Given your setup, to deploy specific components to all the Tenant 1 devices you can create a deployment targeting Tenant_Thing_Group1
. The same applies to devices for Tenant 2 using Tenant_Thing_Group2
as a target.
If you need to deploy components which are common to all devices, you can create another Thing Groups, let's call it for example AllDevices
, and create a deployment with the common components targeting that thing group.
Keep in mind that component configurations specified in a deployment applies to all targeted devices. If you need to deploy the same component but have device specific configurations you can use device shadows to hold the device specific configurations.
Cheers,
Massimiliano
관련 콘텐츠
- AWS 공식업데이트됨 일 년 전
- AWS 공식업데이트됨 2년 전
@Massimiliano,
Thanks for the response. I got that there is provision to select thing group and choose target deployment. Now as per my understanding greengrass first required to be installed on device. And for installation we are following the steps mentioned on following page.
https://docs.aws.amazon.com/greengrass/v2/developerguide/quick-installation.html
Now as per the steps if we trigger the following command it would create deployment too on cloud. Which would individual deployment per device which actually we don't want.
sudo -E java -Droot="/greengrass/v2" -Dlog.store=FILE
-jar ./GreengrassInstaller/lib/Greengrass.jar
--aws-region region
--thing-name MyGreengrassCore
--thing-group-name MyGreengrassCoreGroup
--thing-policy-name GreengrassV2IoTThingPolicy
--tes-role-name GreengrassV2TokenExchangeRole
--tes-role-alias-name GreengrassCoreTokenExchangeRoleAlias
--component-default-user ggc_user:ggc_group
--provision true
--setup-system-service true
Is there a way we can first create only things and map those things to thing group. Second, we would have one greengrass deployment for single device which would like our QA environment. Third, the moment we got green signal from QA team we would use this target deployment and push all those components deployed on QA device to entire thing group.