silvermine / serverless-plugin-cloudfront-lambda-edge

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

Unhelpful failure message if `versionFunctions: false` is set #60

Open skylarmb opened 3 years ago

skylarmb commented 3 years ago

I am not sure if this plugin is intended to work with versionFunctions: false set, e.g.

provider:
  versionFunctions: false

I am assuming it is not, which is fine, but the error message that is thrown is pretty unhelpful

 Error: Could not find output by name of "FooBarLambdaFunctionQualifiedArn" or value from it to use version ARN

This is especially confusing as you will still clearly see FooBarLambdaFunctionQualifiedArn in the outputs of sls info even when using versionFunctions: false

jthomerson commented 3 years ago

PR welcome

skylarmb commented 3 years ago

will do!!