s3-static-website
conortm/s3-static-website/aws
Terraform Module for an Amazon S3 Static Website
Install
README
AWS S3 Static Website Terraform Module Terraform Module for an Amazon S3 Static Website, fronted by a CloundFront Distribution. Note: This module "works" but is still in development. See TODO section. Also, suggestions welcome! Features This module allows for Hosting a Static Website on Amazon S3, provisioning the following: - S3 Bucket for static public files - CloudFront Distribution fronting the S3 Bucket - Route 53 Record Set aliased to the CloudFront Distribution It requires (for now?) that the following have been setup outside this module: - SSL Certificate - Route 53 Hosted Zone Usage ``HCL module "s3-static-website" { source = "conortm/s3-static-website/aws" domain_name = "www.my-aws-s3-static-website.com" redirects = ["my-aws-s3-static-website.com"] secret = "SOME_SECRET_MANAGED_O
Inputs (7)
| Name | Type | Description | Default |
|---|---|---|---|
| secret | any | A secret string between CloudFront and S3 to control access | required |
| zone_id | any | ID of the Route 53 Hosted Zone in which to create an alias record | required |
| cert_arn | any | ARN of the SSL Certificate to use for the Cloudfront Distribution | required |
| domain_name | any | Domain name for the website (i.e. www.example.com) | required |
| public_dir | any | Directory in S3 Bucket from which to serve public files (no leading or trailing | "public" |
| redirects | any | A list of domains that should redirect to domain_name (i.e. for redirecting nake | [] |
| tags | any | A mapping of tags to assign to each resource | {} |
Outputs (1)
cdn_domain_name — Domain name of the Cloudfront DistributionResources (4)
Details
Similar packages
Azure 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,