title: AWS Cognito - ConfigError: Missing region in config for JavaScript SDK
body: <p>I am trying to call createIdentityPool from JavaScript SDK. Please find the below code from sample html screen -</p>
  
  <pre><code>var cognitoidentity = new AWS.CognitoIdentity({apiVersion: '2014-06-30'});    
  AWS.config.apiVersions = {
    cognitoidentity: '2014-06-30',
    // other service API versions
  };    
  var cognitoidentity = new AWS.CognitoIdentity();    
  AWS.config.region = 'us-east-1'; // Region    
  AWS.config.apiVersions = {
    cognitoidentity: '2014-06-30',
    // other service API versions
  };        
  var params = {    
  AllowUnauthenticatedIdentities: true, // required     
    IdentityPoolName: 'String', // required    
    DeveloperProviderName: 'String',    
    OpenIdConnectProviderARNs: [    
      "my Pool Identity", // Identity Pool ID    
   ],
  };    
  cognitoidentity.createIdentityPool(params, function (err, data) {    
    if (err) alert(err, err.stack); // an error occurred    
    else     alert(data);           // successful response    
  });
  </code></pre>
  
  <p><strong>Output alert is</strong> - </p>
  
  <blockquote>
    <p>CredentialsError: Missing credentials in config</p>
  </blockquote>
  
  <p>Can any one help me in this issue.</p>
  
  <p>Thanks,
  Rakesh.</p>