如何在核心设备上更改 Greengrass V2 配置

0

【以下的问题经过翻译处理】 你好,我的设备已经安装了 greengrass 并正在运行,但是我遇到了iot权限的问题。 当我运行 gg installer 时,我将“iotRoleAlias”设置为GGTokenAccessRole,而不是实际名称。

2022-03-18T05:43:45.295Z [ERROR] (pool-2-thread-5) com.aws.greengrass.tes.CredentialRequestHandler: TES responded with status code: 403. Caching response. {"message":"Access Denied"}. {iotCredentialsPath=/role-aliases/GGTokenAccessRole/credentials}
2022-03-18T05:43:45.296Z [ERROR] (pool-2-thread-5) com.aws.greengrass.tes.CredentialRequestHandler: Error in retrieving AwsCredentials from TES. {iotCredentialsPath=/role-aliases/GGTokenAccessRole/credentials, credentialData=TES responded with status code: 403. Caching response. {"message":"Access Denied"}}
2022-03-18T05:44:27.897Z [ERROR] (pool-2-thread-5) com.aws.greengrass.tes.CredentialRequestHandler: Error in retrieving AwsCredentials from TES. {iotCredentialsPath=/role-aliases/GGTokenAccessRole/credentials, credentialData=TES responded with status code: 403. Caching response. {"message":"Access Denied"}}
2022-03-18T05:45:22.119Z [ERROR] (pool-2-thread-5) com.aws.greengrass.tes.CredentialRequestHandler: Error in retrieving AwsCredentials from TES. {iotCredentialsPath=/role-aliases/GGTokenAccessRole/credentials, credentialData=TES responded with status code: 403. Caching response. {"message":"Access Denied"}}

此外,我没有创建iot别名,所以我不知道这是否是一个问题?它能直接使用 IAM 角色吗?谢谢你的帮助。

profile picture
EXPERTE
gefragt vor 4 Monaten5 Aufrufe
1 Antwort
0

【以下的回答经过翻译处理】 您不能直接使用IAM角色。您可以创建一个与已经给定给Greengrass的名称相同的角色别名,或者您可以进行一次部署,指定nucleus组件和部署配置,将iotRoleAlias 和新名称进行更新合。 这里有一些可能有用的文档: https://docs.aws.amazon.com/greengrass/v2/developerguide/update-component-configurations.html#:~:text=%22reset%22%3A%20%5B%22%22%5D-,Merge%20updates,-Merge%20updates%20define

https://docs.aws.amazon.com/greengrass/v2/developerguide/greengrass-nucleus-component.html#:~:text=Greengrass%20Core%20software.-,iotRoleAlias,-The%20AWS%20IoT

谢谢, 珍妮丝

profile picture
EXPERTE
beantwortet vor 4 Monaten

Du bist nicht angemeldet. Anmelden um eine Antwort zu veröffentlichen.

Eine gute Antwort beantwortet die Frage klar, gibt konstruktives Feedback und fördert die berufliche Weiterentwicklung des Fragenstellers.

Richtlinien für die Beantwortung von Fragen