Setting memory limits

Hello, I have a step functions running, but all my lambda functions shows as being executed as 1028Mb, whereas I have specifically specified to use 128Mb! What am I doing wrong, here is part of my serverless.yaml

service: serverless-ingest

provider:
  name: aws
  runtime: nodejs6.10
  iamRoleStatements:
    - Effect: Allow
      Action:
        - s3:*
      Resource: "*"
  environment:
    REGION: ${file(./config.js):${opt:stage}.REGION}

plugins:
  - serverless-step-functions

functions:
  getSignedUrl:
    handler: authorization/index.getSignedUrl
    timeout: 60
    memory: 128
    package:
      artifact: authorization/authorization.zip
    events:
      - http:
          path: get-url
          method: post
          integration: lambda

stepFunctions:
  stateMachines:
    machine:
      StartAt: Choose
      States:
        Choose:
          Type: Task
          Resource: chooseOfBeginning
          Next: ChooseStart
        ChooseStart:
          ....
        UpdateInfo2:
          Type: Task
          Resource: updateDynamoDb
          End: true

when i logout the logs, it shows:

END RequestId: 55bb1760-1dda-11e7-a2cb-f541fd474905
REPORT RequestId: 55bb1760-1dda-11e7-a2cb-f541fd474905	Duration: 116.87 ms	Billed Duration: 200 ms 	Memory Size: 1024 MB	Max Memory Used: 30 MB	

START RequestId: 6614bb06-1dda-11e7-a2cb-f541fd474905 Version: $LATEST
END RequestId: 6614bb06-1dda-11e7-a2cb-f541fd474905
REPORT RequestId: 6614bb06-1dda-11e7-a2cb-f541fd474905	Duration: 138.71 ms	Billed Duration: 200 ms 	Memory Size: 1024 MB	Max Memory Used: 32 MB	

START RequestId: 8fe2d2fc-1de6-11e7-ba7a-97b9351a5f6f Version: $LATEST
END RequestId: 8fe2d2fc-1de6-11e7-ba7a-97b9351a5f6f
REPORT RequestId: 8fe2d2fc-1de6-11e7-ba7a-97b9351a5f6f	Duration: 200.21 ms	Billed Duration: 300 ms 	Memory Size: 1024 MB	Max Memory Used: 34 MB	

START RequestId: dcd2fe62-1de9-11e7-b03a-07330d71889c Version: $LATEST
END RequestId: dcd2fe62-1de9-11e7-b03a-07330d71889c
REPORT RequestId: dcd2fe62-1de9-11e7-b03a-07330d71889c	Duration: 182.79 ms	Billed Duration: 200 ms 	Memory Size: 1024 MB	Max Memory Used: 32 MB	

Done in 2.34s.

any advice is much appreciated

OK, it is memorySize: not memory:

3 Likes