diff --git a/template.yaml b/template.yaml index 87a0e62..2349751 100644 --- a/template.yaml +++ b/template.yaml @@ -44,27 +44,27 @@ Resources: CloudFrontOriginAccessIdentityConfig: Comment: CloudFront access identity - CloudFrontAPICachePolicy: - Type: AWS::CloudFront::CachePolicy - Properties: - CachePolicyConfig: - Comment: "Custom CloudFront Caching Policy to allow the Authorization header through to the Origins." - DefaultTTL: 1 - MaxTTL: 1 - MinTTL: 1 - Name: !Sub ${ApiGatewayId}-CFCachePolicy - ParametersInCacheKeyAndForwardedToOrigin: - CookiesConfig: - CookieBehavior: none - EnableAcceptEncodingBrotli: false - EnableAcceptEncodingGzip: false - HeadersConfig: - HeaderBehavior: whitelist - Headers: - - Authorization - - X-Api-Key - QueryStringsConfig: - QueryStringBehavior: all + # CloudFrontAPICachePolicy: + # Type: AWS::CloudFront::CachePolicy + # Properties: + # CachePolicyConfig: + # Comment: "Custom CloudFront Caching Policy to allow the Authorization header through to the Origins." + # DefaultTTL: 1 + # MaxTTL: 1 + # MinTTL: 1 + # Name: !Sub ${ApiGatewayId}-CFCachePolicy + # ParametersInCacheKeyAndForwardedToOrigin: + # CookiesConfig: + # CookieBehavior: none + # EnableAcceptEncodingBrotli: false + # EnableAcceptEncodingGzip: false + # HeadersConfig: + # HeaderBehavior: whitelist + # Headers: + # - Authorization + # - X-Api-Key + # QueryStringsConfig: + # QueryStringBehavior: all CloudFrontDistribution: Type: AWS::CloudFront::Distribution