A template for launching static sites on AWS.
Includes cloudfront-redirects.template.yaml, which depends on https://github.com/dawaltconley/cloudfront-redirects
Base domain name for the static website.
- Type: String
Primary subdomain to associate with the website. Pass an empty string for apex domains.
- Type: String
- Default: www
S3 object path to a custom 404 page.
- Type: String
- Default: ""
- Type: String
- Default: ApexToSubdomain
- AllowedValues:
- ApexToSubdomain
- SubdomainToApex
- None
- Type: String
- Default: true
- AllowedValues:
- true
- false
- Type: String
- Default: index.html
Name of the stack exporting basic URL redirect functions: install from https://github.com/dawaltconley/cloudfront-redirects
- Type: String
- Default: UrlRedirects
Whether this domain uses Route53 for its DNS
- Type: String
- Default: true
- AllowedValues:
- true
- false
Represents an existing certificate.
- Type: String
- Default: ""
Indicates whether to use the certificate from the AWS Certificate Manager or AWS Identity and Access Management.
- Type: String
- Default: AcmCertificateArn
- AllowedValues:
- AcmCertificateArn
- IamCertificateId
A list of extra aliases for the CloudFront distribution. The Domain and Subdomain parameters included automatically. DNS records pointing them to the distribution must be handled separately.
- Type: CommaDelimitedList
- Default: ""
Price class for CloudFront distribution.
- Type: String
- Default: PriceClass_All
- AllowedValues:
- PriceClass_100
- PriceClass_200
- PriceClass_All
The minimum security policy for the CloudFront distribution.
- Type: String
- Default: TLSv1.2_2021
- AllowedValues:
- SSLv3
- TLSv1.2_2021
- TLSv1.2_2019
- TLSv1.2_2018
- TLSv1.1_2016
- TLSv1_2016
- TLSv1
Default edge cache policy.
- Type: String
- Default: CachingOptimized
- AllowedValues:
- CachingOptimized
- CachingOptimizedForUncompressedObjects
- CachingDisabled
Edge cache policy for HTML files.
- Type: String
- Default: CachingOptimized
- AllowedValues:
- CachingOptimized
- CachingOptimizedForUncompressedObjects
- CachingDisabled
- Type: AWS::Route53::RecordSetGroup
- Condition: CreateRecordSetGroup
- Type: AWS::CloudFront::Distribution
- Type: AWS::CloudFront::CloudFrontOriginAccessIdentity
- Type: AWS::CloudFormation::Stack
- Type: AWS::S3::Bucket
- Type: AWS::S3::BucketPolicy