title: Why am I getting this error? UnknownEndpoint: Inaccessible host: `devicefarm.us-east-1.amazonaws.com'
body: <p>I'm trying to ListProjects in AWS Device Farm.</p>
  <p>Here's my code:</p>
  <pre class="lang-js prettyprint-override"><code>const AWS = require('aws-sdk');
  
  AWS.config.update({ region:'us-east-1' });
  const credentials = new AWS.SharedIniFileCredentials({ profile: '***' });
  AWS.config.credentials = credentials;
      
  const devicefarm = new AWS.DeviceFarm();
      
  async function run() {
    let projects = await devicefarm.listProjects().promise();
    console.log(projects);
  }
      
  run();
  </code></pre>
  <p>I'm getting this error:</p>
  <blockquote>
  <p>UnknownEndpoint: Inaccessible host: <code>devicefarm.us-east-1.amazonaws.com'.</code>
  This service may not be available in the `us-east-1' region.</p>
  </blockquote>