Skip to content

Commit b6d9668

Browse files
committed
temporary fix for multiple regions
1 parent 07573e1 commit b6d9668

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

shared/utils.js

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,14 @@ module.exports = {
77
setDefaults() {
88
this.options.stage = _.get(this, 'options.stage')
99
|| 'dev';
10-
this.options.region = _.get(this, 'options.region')
11-
|| _.get(this, 'serverless.service.provider.region')
12-
|| 'us-central1';
10+
11+
// serverless framework is hard-coding us-east-1 region from aws
12+
// 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;
1318

1419
return BbPromise.resolve();
1520
},

0 commit comments

Comments
 (0)