Closed voodooGQ closed 3 years ago
@jthomerson I apologize just saw the information about opening an issue first. I'll get that added.
Could you provide a sample serverless.yml
that uses this? Preferably something 100% deployable (zip with associated code is fine) so we can test with it.
Sure thing @jthomerson. I'll get something together this morning.
@jthomerson You can find a fully featured demo at https://github.com/voodooGQ/demo-serverless-plugin-cloudfront-lambda-edge. The code for this PR is included in the project so you should be able to just serverless deploy
and see the behavior. Let me know if you have any questions.
@jthomerson Any movement on this? Let me know if I can provide any additional information or assistance. Thank you!
Hey, sorry for the delay @voodooGQ! The repo helped a ton, so thanks! We can merge and cut a release after the requested changes are made.
Sorry, got caught up with other items. I'll try and get this addressed early this week. Thank you!
This addresses an issue I came across while developing for a Serverless framework project. I had
Parameter
values to centralize thepathPattern
as it was being used in theDistribution
as well as some custom cfn functionality. I was unable to utilize the intrinsicRef
function to associate thatParameter
value with this plugin as the plugin is only designed for explicit strings in thepathParameter
.This {R makes the assumption that when an object is being passed in it is a
Ref
and should be treated like such, otherwise treat it as a normal string. This could potentially be expanded to includeGetAtt
values as well if the maintainer sees a potential advantage in that.This is my first work on a Serverless type plugin, so if there are better ways to handle this I'm very happy to learn and adapt.