Reset config does not seem to work when changing thing groups

0

I have the greengrass component C which its v1.0 is deployed to the thing group G1 and its v2.0 is deployed to G2. The deployment is done with the reset flag on both thing groups. I used to be able to move things around G1 and G2 depending on the version of C that I want each thing to have. It has been a couple of days when I do this, the config of component C gets messy. Here is an example: The recipe of C in v1.0 have the accessControl policy to aws.greengrass#PublishToIoTCore on dt/+ resource. The recipe of C in v2.0 have the accessControl policy to aws.greengrass#PublishToIoTCore on dt/+ and cmd/+ resources. I have deployed C (v1.0) to G1 and C (v2.0) to G2 with reset option. When I move thing T from G1 to G2, the version of C jumps to v2.0 but the accessControl policy does not include aws.greengrass#PublishToIoTCore on cmd/+. What am I doing wrong?

I can provide code, recipe and more error messages or information if needed.

Saeed
已提問 8 個月前檢視次數 276 次
1 個回答
1

Hello,

When you reset, are you resetting the component config with an empty string? If you do not provide the single empty string, component configs that already exist will not get updated.

https://docs.aws.amazon.com/greengrass/v2/developerguide/update-component-configurations.html#reset-configuration-update

AWS
已回答 8 個月前
  • Thanks for your answer. Yes I do. I always deploy components with "reset": [""].

  • Could you share the component configurations before and after the deployment? (You could retrieve it by running greengrass-cli component details --name <component-name> before and after the deployment. ) And also the deployment MERGE and RESET config?

您尚未登入。 登入 去張貼答案。

一個好的回答可以清楚地回答問題並提供建設性的意見回饋,同時有助於提問者的專業成長。

回答問題指南