Skip to content

A complete Terraform stack to deploy a s3 hosted serverless website behind CloudFront

License

Notifications You must be signed in to change notification settings

mikmorley/terraform-aws-secure-s3-website-with-cloudfront

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

aws-terraform-secure-s3-website-with-cloudfront

A complete Terraform stack to deploy a serverless static website, hosted from AWS in a secured s3 bucket, only accessible via CloudFront (no direct bucket access).

s3-website-cloudfront

This stack should be used as a quickstart, and may require some additional tweaking to suit your needs (outside of hosting a simple single secure static website).

Variables

Name Type Description
name string Specify the name of the stack/project
region string Defaults to us-east-1
s3_bucket_name string Set this to use a specific S3 bucket, else leave as default and a new bucket will be created.
environment string Used to determine the environment type, e.g. Development, Staging, Production etc.
cloudfront_aliases list Specify a list of CNAMEs to be associated with the site, else leave empty to use *.cloudfront.net.
cloudfront_certificate_arn string If cloudfront_aliases are defined, a ACM Certificate will also be required.

About

A complete Terraform stack to deploy a s3 hosted serverless website behind CloudFront

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published