mirror of
https://github.com/serverless/serverless.git
synced 2026-01-25 15:07:39 +00:00
Add capability to request different region only if it is specified in options.
This commit is contained in:
parent
e90e293c71
commit
c46097c54f
@ -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);
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user