cloudfront-s3-website

HarishKM7/cloudfront-s3-website/aws

Terraform Module HCL AWS ⏱ stale 4y 9mo

Terraform module for S3 website with CloudFront.

Install

module "cloudfront-s3-website" {
source = "HarishKM7/cloudfront-s3-website/aws"
version = "0.1.0"
}
⭐ Source on GitHub 📦 Registry page

README

S3 Website + CloudFront This opinionated Terraform module creates a private S3 bucket configured for static website hosting and a CloudFront distribution for it. Bucket is NOT public. ONLY CloudFront is allowed access to it using a Referer header. Details here. Bucket name is auto-generated and outputted. SSE-S3 encryption is enabled by default. Bucket must contain index.html. CloudFront caching is disabled. CloudFront is only deployed to US, Canada, and Europe. * CloudFront custom domain is not supported. Distribution URL is outputted.

Outputs (2)

website_url
bucket_name

Resources (1)

random_string

Details

FrameworkTerraform Module
LanguageHCL
Version0.1.0
Cloud AWS
★ Stars0
Forks1
Total downloads5.7k
Outputs2
Resources1
LicenseMIT
NamespaceHarishKM7
Updated