title: Get Region from AWS CLI using Node
body: <p>I have installed <a href="https://docs.aws.amazon.com/cli/latest/userguide/install-windows.html" rel="nofollow noreferrer">AWS-CLI</a> in my local machine. I have created a configuration profile. But I don't how to get the region from the profile from my code .</p>
  
  <p><strong>Code</strong></p>
  
  <pre><code>var credentials = new AWS.SharedIniFileCredentials({ profile: node_env });
  console.log(credentials);
  </code></pre>
  
  <p>I can get <code>access ID</code> but I couldn't get the region. Is there is any other way to get the region ?</p>