How to change the greengrass v2 config on a core device

0

Hi there I have a problem with the iot permision on my device which already have gg installed and running

so when i run the gg installer I put GGTokenAccessRole for "iotRoleAlias" instead of the actual name

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"}}

Also i did not create iot aliase so i wonder if that is a problem? can it use a IAMF role directly ?

Thanks for your help

已提問 2 年前檢視次數 644 次
1 個回答
1
已接受的答案

You can not use an IAM role directly. You can either create a role alias with the name you’ve already given to greengrass, or you can do a deployment that specifies the nucleus component and deploys configuration to merge an update for iotRoleAlias with a new name. Here is some documentation that might be useful: 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

Cheers, Janice

已回答 2 年前

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

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

回答問題指南