silvermine / serverless-plugin-cloudfront-lambda-edge

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

Support for CloudFormation `Ref` functions #49

Closed voodooGQ closed 1 year ago

voodooGQ commented 4 years ago

Support of Cloudformation Ref functions to make centralized Parameter associations. While working on a project I had Parameter values to centralize the pathPattern as it was being used in the Distribution as well as some custom cfn functionality. I was unable to utilize the intrinsic Ref function to associate that Parameter value with this plugin as the plugin is only designed for explicit strings in the pathParameter. Adding the Ref associations would allow for keeping the pattern DRY in the configuration.

I had to do this for a project to get it working, so I already have a PR submitted (Didn't read the contribution page close enough, which is why I'm submitting this Issue request after the fact).

PR here: https://github.com/silvermine/serverless-plugin-cloudfront-lambda-edge/pull/48