We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 07573e1 commit b6d9668Copy full SHA for b6d9668
shared/utils.js
@@ -7,9 +7,14 @@ module.exports = {
7
setDefaults() {
8
this.options.stage = _.get(this, 'options.stage')
9
|| 'dev';
10
- this.options.region = _.get(this, 'options.region')
11
- || _.get(this, 'serverless.service.provider.region')
12
- || 'us-central1';
+
+ // serverless framework is hard-coding us-east-1 region from aws
+ // this is temporary fix for multiple regions
13
+ const region = _.get(this, 'options.region')
14
+ || _.get(this, 'serverless.service.provider.region');
15
16
+ this.options.region = (!region || region === 'us-east-1')
17
+ ? 'us-central1' : region;
18
19
return BbPromise.resolve();
20
},
0 commit comments