Add capability to request different region only if it is specified in options.

This commit is contained in:
exoego 2018-12-08 20:46:17 +09:00
parent e90e293c71
commit c46097c54f

View File

@ -253,6 +253,9 @@ class AwsProvider {
}
const request = this.requestQueue.add(() => persistentRequest(() => {
if (options && options.region !== undefined) {
credentials.region = options.region;
}
const awsService = new that.sdk[service](credentials);
const req = awsService[method](params);