serverless-components / aws-cloudfront

Deploy an AWS CloudFront distribution for the provided origins using Serverless Components
https://serverless.com
Apache License 2.0
27 stars 12 forks source link

add configurable defaults #4

Closed danielcondemarin closed 5 years ago

danielcondemarin commented 5 years ago

Motivation

Currently is not possible to configure the TTL or Lambda@Edge for the default cache behavior .

Proposal

This PR introduces a new component input called defaults. You can pass a TTL or Lambda@Edge configuration used by the default cache behavior. Future defaults can be added here as well.