Skip to content

Commit

Permalink
added ACM certificate
Browse files Browse the repository at this point in the history
  • Loading branch information
sergej-brazdeikis committed Apr 9, 2017
1 parent a439703 commit a82fba5
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions s3-static-website-with-cloudfront-and-route-53.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,10 @@ Parameters:
Description: The full domain name e.g. www.jevsejev.io
AllowedPattern: (?!-)[a-zA-Z0-9-.]{1,63}(?<!-)
ConstraintDescription: must be a valid DNS zone name.
AcmCertificateArn:
Type: String
Description: the Amazon Resource Name (ARN) of an AWS Certificate Manager (ACM) certificate.
AllowedPattern: "arn:aws:acm:.*"
Mappings:
RegionMap:
us-east-1:
Expand Down Expand Up @@ -89,10 +93,11 @@ Resources:
QueryString: true
Cookies:
Forward: none
ViewerProtocolPolicy: https-only
ViewerProtocolPolicy: redirect-to-https
PriceClass: PriceClass_All
ViewerCertificate:
CloudFrontDefaultCertificate: 'true'
AcmCertificateArn: !Ref AcmCertificateArn
SslSupportMethod: sni-only
WebsiteDNSName:
Type: AWS::Route53::RecordSetGroup
Properties:
Expand Down

0 comments on commit a82fba5

Please sign in to comment.