Skip to content

Terraform module for static website on AWS

License

Notifications You must be signed in to change notification settings

tabletcorry/tf-aws-static-site

Repository files navigation

tf-aws-static-site

Example use:

module "hugo_blog" {
  source = "git::https://github.com/tabletcorry/tf-aws-static-site.git?ref=v1.1"

  # Name for S3 bucket and possibly other resources in AWS
  name                   = "hugo-bucket-name"
  # Primary domain name for Cloudfront and certificate
  primary_domain_name    = "example.com"
  # Secondary names for Cloudfront and certificate
  secondary_domain_names = ["www.example.com"]
  # JS Cloudfront function script for request path
  request_function_path  = "${path.module}/request.js"
}

About

Terraform module for static website on AWS

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages