Skip to content

Commit

Permalink
Enable http2 for cloudfront static sites. (widdix#60)
Browse files Browse the repository at this point in the history
Signed-off-by: Elliot Murphy <elliot@elliotmurphy.com>
  • Loading branch information
statik authored and michaelwittig committed Mar 31, 2017
1 parent 3100531 commit 9a13435
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions static-website/static-website.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -102,6 +102,7 @@ Resources:
TargetOriginId: s3origin
ViewerProtocolPolicy: 'redirect-to-https'
Enabled: true
HttpVersion: http2
PriceClass: 'PriceClass_All'
ViewerCertificate:
AcmCertificateArn: !If [HasCreateAcmCertificate, !Ref Certificate, !If [HasAcmCertificateArn, !Ref ExistingCertificate, !Ref 'AWS::NoValue']]
Expand Down Expand Up @@ -157,6 +158,7 @@ Resources:
TargetOriginId: s3origin
ViewerProtocolPolicy: 'redirect-to-https'
Enabled: true
HttpVersion: http2
PriceClass: 'PriceClass_All'
ViewerCertificate:
AcmCertificateArn: !If [HasCreateAcmCertificate, !Ref Certificate, !If [HasAcmCertificateArn, !Ref ExistingCertificate, !Ref 'AWS::NoValue']]
Expand Down

0 comments on commit 9a13435

Please sign in to comment.