-1

Create user pool with lambda function

User: arn:aws:sts::********:assumed-role/{my funcutin name} is not authorized to perform: cognito-idp:CreateUserPool on resource: * because no identity-based policy allows the cognito-idp:CreateUserPool action

  • Whats the language inside of lambda function? – Pablo Salazar Apr 02 '23 at 14:26
  • 1
    The solution here is to create a policy that have access to cognito (more specifically CreateUserPool action) and then assign that policy to the role that you are using with the lambda function – Pablo Salazar Apr 02 '23 at 14:32

1 Answers1

1

You need to give the IAM role the cognito-idp:CreateUserPool permission

dannyrc
  • 204
  • 1
  • 8