static-website
cloudmaniac/static-website/aws
Terraform Module to provision an AWS static website using Route53, S3, and CloudFront.
AWS Static Website Terraform Module Terraform module which provision required AWS resources to host a performant and secured static website. Features This Terraform module creates the following AWS resources: AWS Certificate Manager: wildcard certificate for your domain. S3 Bucket #1: to store logs. Bucket #2: to store the content (example.com). Bucket #3: to redirect a different subdomain to the main domain (e.g., www.example.com redirected to example.com). CloudFront Distribution #1: to frontend the website. Distribution #2: to frontend the subdomain that will be redirected to the main domain. Route53 record sets pointing to the two CloudFront distributions. Requirements This module is meant for use with Terraform 0.12+. It has not been tested with previous versions of Terraform. An AWS
| Name | Type | Description | Default |
|---|---|---|---|
| website-domain-main | string | Main website domain, e.g. cloudmaniac.net | required |
| website-domain-redirect | string | Secondary FQDN that will redirect to the main URL (e.g., www.cloudmaniac.net) | required |
| domains-zone-root | string | Root zone under which the domains should be registered | required |
| cloudfront_lambda_function_arn | string | The optional ARN of AWS Lambda Function that can be associated w | required |
| website-additional-domains | list(string) | Main website additional domains (e.g., additional.cloudmaniac.net) that don't ne | [] |
| tags | map(string) | Tags added to resources | {} |
| support-spa | bool | Support SPA (Single-Page Application) website with redirect to index.html | false |
| cloudfront_lambda_function_event_type | string | The type of event that triggers the above Lambda Function. For p | "origin-request" |
website_redirect_s3_bucket — The s3 bucket of the website redirect bucketwebsite_cdn_root_id — Main CloudFront Distribution IDwebsite_root_s3_bucket — The website root bucket where resources are uploadedwebsite_logs_s3_bucket — The s3 bucket of the website logsAzure landing zones Terraform module
Terraform supermodule for the Terraform platform engineering for Azure
Terraform module to deploy landing zone subscriptions (and much more) in Azure
Terraform Module to define a consistent naming convention by (namespace, stage,