title: How to fix user pool ******** does not exist in boto3
body: <p>I'm new to <a href="https://aws.amazon.com/" rel="nofollow noreferrer">AWS</a> and <a href="https://boto3.amazonaws.com/v1/documentation/api/latest/index.html" rel="nofollow noreferrer">boto 3</a> Python SDK. I configured the <code>Access Key ID</code>, <code>Secret Access Key</code> and the <code>region name</code> through <a href="https://docs.aws.amazon.com/cli/latest/userguide/cli-chap-configure.html#cli-quick-configuration" rel="nofollow noreferrer">AWS CLI</a>.</p>
  
  <pre class="lang-py prettyprint-override"><code>import boto3
  
  client = boto3.client('cognito-idp')
  
  response = client.admin_get_user(
      UserPoolId='us-east-2_hJpikme9T',
      Username='wasdkiller'
  )
  </code></pre>
  
  <p>Here is my <a href="https://docs.aws.amazon.com/cognito/latest/developerguide/cognito-user-identity-pools.html" rel="nofollow noreferrer">user pool</a> details,</p>
  
  <p><a href="https://i.stack.imgur.com/RO3NV.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/RO3NV.png" alt="connection pool details"></a></p>
  
  <p>I provided the correct <code>UserPoolId</code>, but when I run above code sample I got below error for every functions in <a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cognito-idp.html#id108" rel="nofollow noreferrer">CognitoIdentityProvider</a>, for an example I used <a href="https://boto3.amazonaws.com/v1/documentation/api/latest/reference/services/cognito-idp.html#CognitoIdentityProvider.Client.admin_get_user" rel="nofollow noreferrer">admin_get_user(**kwargs)</a>.</p>
  
  <pre class="lang-sh prettyprint-override"><code>ResourceNotFoundException: An error occurred (ResourceNotFoundException) when calling the AdminGetUser operation: User pool us-east-2_hJpikme9T does not exist.
  </code></pre>