I am new Cognito. I am trying to implement AWS Cognito using Lambda. This is the tutorial I am following.
AmazonCognitoIdentityClient client =
You are using a Cognito user pool id as the identity pool id. They are two different things. Identity pool ids are of format us-east-1:XXXX-XXXXXX-XXXX-XXXX.
To get an identity pool id you should use the "Manage Federated Identities" parts of the Cognito console not the "Manage User Pools" section. Hope this helps.
Just a note: you can also find the correct user pool app client id in your project's aws-exports.js. The property name is "aws_user_pools_web_client_id"
You can find it in User Pools > Federated Identities > App clients > App client id