Skip to content

Commit

Permalink
Merge pull request #16 from mihaerzen/master
Browse files Browse the repository at this point in the history
Fix passing s3Client to `monolambda/s3`
  • Loading branch information
k1LoW committed May 15, 2018
2 parents a2f1457 + 7bc94bf commit 52aa773
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,12 +33,12 @@ class ServerlessS3Sync {
client() {
const provider = this.serverless.getProvider('aws');
const awsCredentials = provider.getCredentials();
const awsS3Client = new provider.sdk.S3({
const s3Client = new provider.sdk.S3({
region: awsCredentials.region,
credentials: awsCredentials.credentials,
});

return s3.createClient(awsS3Client);
return s3.createClient({ s3Client });
}

sync() {
Expand Down

0 comments on commit 52aa773

Please sign in to comment.