Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cloudfront cache and origin policy #1796

Merged

Conversation

mello7tre
Copy link
Contributor

Added support for Cloudfront CachePolicy and OriginRequestPolicy with proper validators.

Tested creation with a template containing both CachePolicy and OriginRequestPolicy.

Note:
You cannot set MaxTLL = MinTLL = DefaultTTL = 0 in CachePolicyConfig.
If you do this CloudFormation give error ("Invalid request provided: AWS::CloudFront::CachePolicy").

By WebGui if you set all to zero you are no more able to configure ParametersInCacheKeyAndForwardedToOrigin's parameters as Cookie, Headers and QueryStrings.
This is probably the root cause of the error.
(ParametersInCacheKeyAndForwardedToOrigin is always required, so omitting it is not a solution)

In that case just set MaxTLL to one (maybe AWS will fix this in the future).

@markpeek markpeek merged commit b217e5b into cloudtools:master Oct 4, 2020
@markpeek
Copy link
Member

markpeek commented Oct 4, 2020

Thanks!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants