Reputation: 23
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
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