Using AWS SDK for JavaScript I want to use the default profile that assumes the a role. It works perfect with native AWS Cli but using node.js with aws-sdk do not assume the role but only uses credentials to the AWS account where the access key belong to. I've found this documentation but it does not deal with assuming role: Using AWS SDK for JavaScript I want to use the