mholland
mholland

Reputation: 23

How to import a AWS Cognito User Pool in a Flutter Project?

I'm trying to import a existing User Pool to my Amplify Flutter App. I succeeded creating a user pool in amplify CLI as well as creating a authentication in Admin Console sandbox, but I'm getting permissions issues when I perform:

amplify auth import

User: arn:aws:sts::*:assumed-role/us-east-1_*_Full-access/amplifyadmin is not authorized to perform: cognito-idp:ListUserPools on resource: * 

Upvotes: 1

Views: 835

Answers (2)

Bruno Fernandes
Bruno Fernandes

Reputation: 26

You need to grant ListUserPools permission to role us-east-1_*_Full-access, used by amplify to interact with Cognito.

Find us-east-1_*_Full-access role in IAM roles and attach a policy with that permission.

=> Replace us-east-1_*_Full-access with the name of the role assumed by Amplify, as shown in the return message.

Upvotes: 1

Rajesh
Rajesh

Reputation: 48

you need to check IAM user permission

Upvotes: 0

Related Questions