cloudfront_distribution: fix the order of headers to avoid updates again and again (#37340)

* Fix python2/3 compatibilities issues

* Sort cloudfront_distribution headers to avoid useless updates
This commit is contained in:
Julien Vey 2018-03-21 13:16:42 +01:00 committed by Will Thames
commit ec2e027980
2 changed files with 11 additions and 5 deletions

View file

@ -1,12 +1,16 @@
cloudfront_hostname: "{{ resource_prefix | lower }}01"
cloudfront_hostname: "{{ resource_prefix }}01"
# Use a domain that has a wildcard DNS
cloudfront_alias: "{{ cloudfront_hostname | lower }}.github.io"
cloudfront_alias: "{{ cloudfront_hostname }}.github.io"
cloudfront_test_cache_behaviors:
- path_pattern: /test/path
forwarded_values:
headers:
- Host
- X-HTTP-Forwarded-For
- CloudFront-Forwarded-Proto
- Origin
- Referer
allowed_methods:
items:
- GET