title: using profile that assume role in aws-sdk (AWS JavaScript SDK)
body: <p>Using the AWS SDK for JavaScript, I want to use a default profile that assumes the a role. This works perfectly with the AWS CLI. Using node.js with the SDK does not assume the role, but only uses credentials to the AWS account that the access key belongs to.
  I've found this documentation but it does not deal with assuming a role: <a href="http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html" rel="noreferrer">http://docs.aws.amazon.com/sdk-for-javascript/v2/developer-guide/loading-node-credentials-shared.html</a></p>
  
  <p>Any tips?</p>
  
  <p>This is my config file:</p>
  
  <pre><code>[default]
  role_arn = arn:aws:iam::123456789:role/Developer
  source_profile = default
  output = json
  region = us-east-1
  </code></pre>