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
You need to give the IAM role the cognito-idp:CreateUserPool permission