amazon-web-servicesaws-lambdaamazon-cognitoaws-sdkaws-userpools

AWS Create user pool


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


Solution

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