Lambda layers do not work? [solved]

I’m trying the new Lambda layers functionality with N|Solid monitoring (https://docs.nodesource.com/nsolid_aws_lambda/docs) so I upgraded to Serverless 1.34 and added

  layers:
    - arn:aws:lambda:eu-west-1:800406105498:layer:nsolid-node-8:2

to all functions (here’s the whole commit: https://github.com/keboola/developer-portal/commit/2dffe8e43c0b098647cb48ef68c00b8762a9d776) but it apparently does not work, there’s nothing about layers in the generated CF template and even the Designer tab in the Lambda console shows no layer. Am I missing something or is it a bug?

Oh, sorry, my fault. It appears that something didn’t go well in my docker machine (probably the yarn install). The second try worked. ;o)

1 Like