Lambda layer not attaching to function


#1

I followed the example repo found here. The function deploys without issue however it does not have a layer attached per the Lambda console. I can manually add the layer from the console after the function has deployed. sls deploy -v doesn’t complain about anything. Any help is appreciated.

serverless.yml:

service: yumyum-layered

provider:
  name: aws
  runtime: nodejs8.10
  region: us-east-1

  iamRoleStatements:
    - Effect: "Allow"
      Action:
        - "dynamodb:*"
        - "s3:*"
        - "lambda:*"
        - "cognito:*"
      Resource: "*"

package:
  individually: true

functions:
  masterResolver:
    handler: functions/MasterResolver.handler
    layers:
      - arn:aws:lambda:us-east-1:XXXXXXX:layer:yumyum-coreLibraries:1

#2

I’m also experiencing this issue did you find a solution.


#3

Hi, my colleague had the same issue and updating his Serverless seemed to solve the issue.