silvermine / serverless-plugin-cloudfront-lambda-edge

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

No support for multiple path patterns #35

Closed floydnoel closed 5 years ago

floydnoel commented 5 years ago

For my use case I need to associate a single edge lambda with multiple path patterns. Currently there is no way to do this as the plugin assumes only one association will be made.

floydnoel commented 5 years ago

figured it out, array is at the lambdaAtEdge level, instead of the pattern level. Only took reading the source for me to figure that out, derp.

jthomerson commented 5 years ago

Glad you figured it out! In case anyone else encounters this problem, I think it's covered in this heading: https://github.com/silvermine/serverless-plugin-cloudfront-lambda-edge#configuring-functions-to-associate-with-cloudfront-distributions

If that has any errors, please let us know.