Skip to content

Commit

Permalink
fix: Re-adding ability to assume normal aws keys
Browse files Browse the repository at this point in the history
  • Loading branch information
chrsdietz committed Feb 18, 2020
1 parent 1d43d65 commit 751c5f6
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/Plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,12 @@ class Plugin implements ServerlessPlugin {
sign_version: 4
} as AWSOptions; // The typings are wrong. It need to include "key" and "sign_version"
});
} else {
requestOptions.aws = {
key: AWSConfig.credentials.accessKeyId,
secret: AWSConfig.credentials.secretAccessKey,
sign_version: 4
} as AWSOptions;
}
}

Expand Down

0 comments on commit 751c5f6

Please sign in to comment.