Topic:   aws cognito-idp create-user-pool
Mar 03, 2021 12:25 1 Replies 161 Views JOSEPH

I keep getting this error when i run the aws cognito-idp create-user-pool command:

``` An error occurred (AccessDeniedException) when calling the CreateUserPool operation: User: arn:aws:iam::1234567:user/role is not authorized to perform: cognito-idp:CreateUserPool on resource: * ```

Would appreciate if anyone can help me out on this.
This is my role policy:
{
"Version": "2012-10-17",
"Statement": [
{
"Sid": "CognitoIDP",
"Effect": "Allow",
"Action": ,
"Resource": "*"
}
]
}

Prev Next
Topic Replies (1)
  1. 1
    idnkx user

    SHALINI

    You have to set the action in your role policy:
    "Action": "cognito-idp:CreateUserPool"

    It should be:
    {
    "Version": "2012-10-17",
    "Statement": [
    {
    "Sid": "CognitoIDP",
    "Effect": "Allow",
    "Action": "cognito-idp:CreateUserPool",
    "Resource": "*"
    }
    ]
    }

Leave a Reply
Guest User

Not sure what course is right for you?

Choose the right course for you.
Get the help of our experts and find a course that best suits your needs.


Let`s Connect