silvermine / serverless-plugin-cloudfront-lambda-edge

Adds Lambda@Edge support to Serverless
MIT License
296 stars 41 forks source link

Configuration is required #67

Closed david-gettins closed 3 years ago

david-gettins commented 3 years ago

I believe this to be a bug introduced in #64.

Problem Instead of saying that lambdaAtEdge is unrecognised (fixed) it now complains if lambdaAtEdge is not specified for a function.

Serverless: Configuration warning:
Serverless:   at 'functions.allow': should have required property 'lambdaAtEdge'
Serverless:   at 'functions.hello': should have required property 'lambdaAtEdge'
Serverless:   at 'functions.greet': should have required property 'lambdaAtEdge'

Solution Make the configuration optional.

jthomerson commented 3 years ago

fixed in 2.2.1 thanks to @david-gettins