Configuration template to deploy a CloudFront cache policy which determines which objects are served from the CloudFront cache when the viewer requests data over HTTP. 

The configuration template supports the following settings: 

  • Policy name and comment
  • TTL (Time-to-live) values (Default, minimum, and maximum)
  • Cache key settings including header, cookie and query string behaviours
  • Compression support (Brotli and gzip)
Items
1
Size
0.6 KB
Missing Parameters
AWSTemplateFormatVersion: '2010-09-09'
Description: ''
Resources:
  CloudFrontCachePolicy:
    Type: 'AWS::CloudFront::CachePolicy'
    Properties:
      CachePolicyConfig:
        Name: ''
        Comment: ''
        DefaultTTL: 86400
        MaxTTL: 31536000
        MinTTL: 1
        ParametersInCacheKeyAndForwardedToOrigin:
          EnableAcceptEncodingBrotli: true
          EnableAcceptEncodingGzip: true
          HeadersConfig:
            HeaderBehavior: none
          QueryStringsConfig:
            QueryStringBehavior: none
          CookiesConfig:
            CookieBehavior: none
Parameters: {}
Metadata: {}
Conditions: {}

Actions



Customize Template

Cache Policy Settings

Cache key settings

Compression Support

* Required field