title: How to create user in amazon-cognito using boto3 in python
body: <p>I'm trying to create user using python3.x and boto3 but end up with facing some issues</p>
  
  <p>I've tried using "admin_create_user" even id didn't worked for me</p>
  
  <pre><code>import boto3
  aws_client = boto3.client('cognito-idp', 
      region_name = CONFIG["cognito"]["region"]
  )
  response = aws_client.admin_create_user(
      UserPoolId = CONFIG["cognito"]["pool_id"],
      Username = email, 
      UserAttributes = [
          {"Name": "first_name", "Value": first_name},
          {"Name": "last_name", "Value": last_name},
          { "Name": "email_verified", "Value": "true" }
      ],
      DesiredDeliveryMediums = ['EMAIL']
  )
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/kE8U2.png" rel="noreferrer">Error facing</a></p>