cloudtools / troposphere

troposphere - Python library to create AWS CloudFormation descriptions
BSD 2-Clause "Simplified" License
4.93k stars 1.45k forks source link

Missing querystring behaviour for cloudfront cache policies. #2060

Closed CaptainJiNX closed 2 years ago

CaptainJiNX commented 2 years ago

According to your validation, the allowed values here are ["none", "whitelist", "all"], but according to AWS docs, they should be ["none", "whitelist", "allExcept", "all"].

Your validation: https://github.com/cloudtools/troposphere/blob/main/troposphere/validators/cloudfront.py#L72

AWS documentation. https://docs.aws.amazon.com/AWSCloudFormation/latest/UserGuide/aws-properties-cloudfront-cachepolicy-querystringsconfig.html

markpeek commented 2 years ago

Thanks for the issue. Fixed now.