henhal / serverless-plugin-layer-manager

Plugin for the Serverless framework that offers improved AWS Lambda layer management
MIT License
12 stars 8 forks source link

I got error "unknown tag !<!Ref:> " #1

Closed balazsnemeth closed 4 years ago

balazsnemeth commented 4 years ago

My layer is setup as you described, but referencing like:

functions:
  getSoftskillScore:
    handler: handler.getSoftSkillScore
    layers:
      - !Ref: CommonLibsLambdaLayer

Throws the error:

unknown tag !<!Ref:> in "/Users/nbalazs/Work/awesomeprojects/serverless.yml" at line 45, column 36:

balazsnemeth commented 4 years ago

If I define like this, then it does work:

layers:
      - {Ref: CommonLibsLambdaLayer}
henhal commented 4 years ago

@balazsnemeth Thanks! This was a typo in my example. I've now updated the README and also added a small example service to illustrate the usage.