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
preguntada hace un año1204 visualizaciones
1 Respuesta
0
Respuesta aceptada

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
EXPERTO
kentrad
respondido hace un año
profile picture
EXPERTO
revisado hace un año

No has iniciado sesión. Iniciar sesión para publicar una respuesta.

Una buena respuesta responde claramente a la pregunta, proporciona comentarios constructivos y fomenta el crecimiento profesional en la persona que hace la pregunta.

Pautas para responder preguntas