Skip to content

Commit

Permalink
Merge pull request #80 from kking124/bugfix/78-provider-region-not-set
Browse files Browse the repository at this point in the history
add provider region override
  • Loading branch information
k1LoW authored Feb 12, 2021
2 parents af0641e + fddb6b4 commit e72ad58
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 @@ -84,8 +84,8 @@ class ServerlessS3Sync {
sessionToken: provider.cachedCredentials.sessionToken,
}
} else {
region = provider.getCredentials().region
awsCredentials = provider.getCredentials().credentials
region = provider.getRegion() || provider.getCredentials().region;
awsCredentials = provider.getCredentials().credentials;
}
let s3Options = {
region: region,
Expand Down

0 comments on commit e72ad58

Please sign in to comment.