title: AWS Amplify with React Native: Credentials should be scoped to a valid region, not us-east-1
body: <p>I am trying to make a simple get request using the AWS Amplify SDK for React Native and an IAM Authorizer in API Gateway. I always get the following error message:</p>
  
  <blockquote>
    <p>Credential should be scoped to a valid region, not 'us-east-1'.</p>
  </blockquote>
  
  <p>What am I doing wrong? Heres my code (does not do anything yet):</p>
  
  <pre><code>function getImageIdForUpload() {
      let apiName = 'MyAPIGatewayAPI';
      let path = '/upload-image/get-new-id';
      let myInit = {
          // replace this with attributes you need
      };
  
      API.get(apiName, path, myInit).then(response =&gt; {
          console.log(response)
      }).catch(error =&gt; {
          console.error(error.response)
      });
  }
  </code></pre>
  
  <p>My config:</p>
  
  <pre><code>Auth: {
          // REQUIRED - Amazon Cognito Identity Pool ID
          identityPoolId: 'eu-central-1:xxxx',
          // REQUIRED - Amazon Cognito Region
          region: 'eu-central-1',
          // OPTIONAL - Amazon Cognito User Pool ID
          userPoolId: 'eu-central-1_xxxx',
          // OPTIONAL - Amazon Cognito Web Client ID
          userPoolWebClientId: 'xxxx',
      },
  </code></pre>
  
  <p>Any help would be appreciated :)</p>