getlift / lift

Expanding Serverless Framework beyond functions using the AWS CDK
MIT License
912 stars 109 forks source link

feat: allow origin fields with cacheBehavior #360

Closed cdominguezg closed 1 month ago

cdominguezg commented 10 months ago

I need to add the origins in order to use API Gateway resources. Tested with extensions but didn't work, so I've implemented another fields to do that.

I've added a new test and also tested in an internal project as a PoC and it works as expected. I updated the docs.

cdominguezg commented 10 months ago

@mnapoli hey! could you take a look on this please?

mnapoli commented 10 months ago

Hi, I'm sorry but I don't think this is something we want to add to Lift. We don't want to add every option available to constructs.

cdominguezg commented 10 months ago

I see, so do you have any recommendation to implement this apart of forking?

mnapoli commented 10 months ago

I would recommend to "eject" from Lift: https://github.com/getlift/lift#ejecting