Trust Policy Principal gets converted to random string

0

I have setup a Trust Policy in my Identity Pool auth role. The trust policy allows a lambda role to assume the role. Everything works fine, but sometimes after doing Amplify push, the Principal in trust policy in the auth role gets converted to this random string and looks like this. It is supposed to be arn of the lambda role.

{ "Sid": "Statement1", "Effect": "Allow", "Principal": { "AWS": "AROAVK34QRIAIG3JRODO3" }, "Action": "sts:AssumeRole" }

sarin
已提問 1 年前檢視次數 1205 次
1 個回答
0
已接受的答案

Take a look at the section titled, "What happens when a role in a trust policy is deleted". How to use trust policies with IAM roles.

profile pictureAWS
專家
kentrad
已回答 1 年前
profile picture
專家
已審閱 1 年前

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

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

回答問題指南