Creates an AWS CloudFront Distribution (CDN) with an SSL Certificate against a subdomain created as another block.
enable_www: bool- (Default: true) Enable/Disable creating www. DNS record in addition to DNS record for site hosted on CDNredirect_www: bool- (Default: false) Redirectwww.<domain>to<domain>with anHTTP 301, preserving path and query string. Requiresenable_www = true. When false,www.<domain>serves the same content as<domain>.enable_404page: bool- (Default: false) Enable/Disable custom 404 page within s3 bucket. If enabled, bucket must contain 404.html.clean_urls: object- (Default:{ enabled = false, mode = "redirect" }) Serve extension-less URLs for sites whose files end in.html. A CloudFront Function maps/pageto/page.htmland/dir/to/dir/index.html; requests that already name a file pass through.mode = "redirect"answers/pagewith anHTTP 301to/page.html, keeping.htmlcanonical (use this for an existing site to avoid re-indexing).mode = "rewrite"serves/page.htmlat/pagesilently, making the extension-less URL canonical (use this for a new site, or with VitePresscleanUrls: true).
cdn_arn: string- CloudFront Distribution ARNcert_arn: string- SSL Certificate ARN