Skip to content

Commit

Permalink
set AWS_REGION default from provider
Browse files Browse the repository at this point in the history
  • Loading branch information
clschnei committed Sep 26, 2018
1 parent 2bd3afb commit 9209917
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/index.js
Expand Up @@ -550,7 +550,12 @@ class Offline {
process.env = _.extend({}, baseEnvironment);
}
else {
Object.assign(process.env, this.service.provider.environment, this.service.functions[key].environment);
Object.assign(
process.env,
{ AWS_REGION: this.service.provider.region },
this.service.provider.environment,
this.service.functions[key].environment
);
}
process.env._HANDLER = fun.handler;
handler = functionHelper.createHandler(funOptions, this.options);
Expand Down

0 comments on commit 9209917

Please sign in to comment.