"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 Answer
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
answered a year ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions