"Invalid identity pool configuration. Check assigned IAM roles for this pool" Error while integrating to web app

0

Amplify Config Console Error Identity pool config I am trying to integrate amazon lex chatbot to my react web app but i'm getting this invalid identity pool configuration error on my console.Please help me to sort this, I've attached necessary attachments. Thanks..

1 個回答
0

Hi there! Can you please share the trust policy and IAM policy associated with your Authenticated role: AWSServiceRoleForLexV2Bots_XXXX? My hunch is that your trust policy is not granting access to the cognito-identity.amazonaws.com federated service principal and is instead granting access to the Amazon Lex service principal, in which case Cognitio cannot leverage that role for federation. Below is an example of a trust policy I have associated with my Cognito Identity Pool authenticated role:

{
    "Version": "2012-10-17",
    "Statement": [
        {
            "Sid": "",
            "Effect": "Allow",
            "Principal": {
                "Federated": "cognito-identity.amazonaws.com"
            },
            "Action": "sts:AssumeRoleWithWebIdentity",
            "Condition": {
                "StringEquals": {
                    "cognito-identity.amazonaws.com:aud": "<cognitio-identity-pool-id>"
                },
                "ForAnyValue:StringLike": {
                    "cognito-identity.amazonaws.com:amr": "authenticated"
                }
            }
        }
    ]
}
profile pictureAWS
已回答 1 年前

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

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

回答問題指南