MadSkills-io / fullstack-serverless

Serverless Plugin - Simplify creating a full stack serverless web app
https://www.madskills.io/fullstack-serverless
Other
111 stars 43 forks source link

Custom origins and cachebehaviors #35

Closed pecirep closed 3 years ago

pecirep commented 3 years ago

Just a small, simple feature to allow adding further origins and cache behaviors to the cloudfront distribution, for situations where there might be a separate bucket containing media or user generated data, with a corresponding path (and many other use-cases, really). So far you'd have to copy the entire Distribution resource to the serverless config and add the changes there, this should make it a bit more elegant. Hot tip: use external files and reference them in the serverless.yml: origins: ${file(./resources/customCloudfront.yml):Origins}