Skip to content

Commit 37943bc

Browse files
committed
Fix #10 - forward AWS_PROFILE.
AWS_PROFILE is now the preferred environment variable and AWS_DEFAULT_PROFILE is deprecated. See aws/aws-cli@6be3aa2
1 parent 3e585f0 commit 37943bc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

lib/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ class Aws {
2828
const promise = Promise.resolve().then(function () {
2929
const env_vars = ('HOME PATH AWS_ACCESS_KEY_ID AWS_SECRET_ACCESS_KEY ' +
3030
'AWS_SESSION_TOKEN AWS_DEFAULT_REGION ' +
31-
'AWS_DEFAULT_PROFILE AWS_CONFIG_FILE').split(' ');
31+
'AWS_PROFILE AWS_DEFAULT_PROFILE AWS_CONFIG_FILE').split(' ');
3232
const env = _.reduce(env_vars, (result, value) => {
3333
if (process.env[value]) {
3434
result[value] = process.env[value];

0 commit comments

Comments
 (0)