Skip to content

Commit

Permalink
lowercase MemorySize in invoke local
Browse files Browse the repository at this point in the history
  • Loading branch information
eahefnawy committed Dec 7, 2016
1 parent f8dc248 commit 9bcde02
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/plugins/aws/invokeLocal/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class AwsInvokeLocal {

loadEnvVars() {
const lambdaName = this.options.functionObj.name;
const MemorySize = Number(this.options.functionObj.memorySize)
const memorySize = Number(this.options.functionObj.memorySize)
|| Number(this.serverless.service.provider.memorySize)
|| 1024;

Expand All @@ -68,7 +68,7 @@ class AwsInvokeLocal {
AWS_LAMBDA_LOG_GROUP_NAME: this.provider.naming.getLogGroupName(lambdaName),
AWS_LAMBDA_LOG_STREAM_NAME: '2016/12/02/[$LATEST]f77ff5e4026c45bda9a9ebcec6bc9cad',
AWS_LAMBDA_FUNCTION_NAME: lambdaName,
AWS_LAMBDA_FUNCTION_MEMORY_SIZE: MemorySize,
AWS_LAMBDA_FUNCTION_MEMORY_SIZE: memorySize,
AWS_LAMBDA_FUNCTION_VERSION: '$LATEST',
NODE_PATH: '/var/runtime:/var/task:/var/runtime/node_modules',
};
Expand Down

0 comments on commit 9bcde02

Please sign in to comment.