mirror of
https://github.com/serverless/serverless.git
synced 2026-02-01 16:07:28 +00:00
Fix service.provider.region resolution
This commit is contained in:
parent
0f04931c55
commit
f4d42d1cb6
@ -124,6 +124,9 @@ class AwsProvider {
|
||||
this.serverless = serverless;
|
||||
this.sdk = AWS;
|
||||
this.serverless.setProvider(constants.providerName, this);
|
||||
if (this.serverless.service.provider.name === 'aws') {
|
||||
this.serverless.service.provider.region = this.getRegion();
|
||||
}
|
||||
this.requestCache = {};
|
||||
this.requestQueue = new PromiseQueue(2, Infinity);
|
||||
// Store credentials in this variable to avoid creating them several times (messes up MFA).
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user