Skip to content

Commit

Permalink
Merge pull request #317 from negillett/8908
Browse files Browse the repository at this point in the history
Update exodus-lambda-deploy DistributionConfig [RHELDST-8908]
  • Loading branch information
negillett committed Feb 3, 2022
2 parents 9c1be8a + 70b6af8 commit dd56844
Showing 1 changed file with 20 additions and 6 deletions.
26 changes: 20 additions & 6 deletions configuration/exodus-lambda-deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,25 @@ Parameters:
Description: The IAM Role ARN for Lambda Function resource

Resources:
CachePolicy:
Type: AWS::CloudFront::CachePolicy
Properties:
CachePolicyConfig:
DefaultTTL: 86400
MaxTTL: 31536000
MinTTL: 0
Name: !Sub ${project}-cache-policy-${env}
ParametersInCacheKeyAndForwardedToOrigin:
CookiesConfig:
CookieBehavior: none
EnableAcceptEncodingGzip: false
HeadersConfig:
HeaderBehavior: whitelist
Headers:
- Want-Digest
QueryStringsConfig:
QueryStringBehavior: none

Distribution:
Type: AWS::CloudFront::Distribution
Properties:
Expand All @@ -38,12 +57,7 @@ Resources:
CachedMethods:
- GET
- HEAD
ForwardedValues:
QueryString: false
Cookies:
Forward: none
Headers:
- Want-Digest
CachePolicyId: !Ref CachePolicy
LambdaFunctionAssociations:
- EventType: origin-request
LambdaFunctionARN: !Ref OriginRequestFunc.Version
Expand Down

0 comments on commit dd56844

Please sign in to comment.