Skip to content

jdpleiness/terraform-google-storage-static-website

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

34 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

terraform-google-storage-static-website

Maintained by Jacob Pleiness Github Actions Terraform Version

A Terraform Module for a static website hosted on Google Cloud Storage.

This module will create a bucket and assign it the proper ACLs to host a static website. When using the module, the bucket name should be the domain name of the website that will be created. Also ensure that domain ownership has been verified before using the module.

Static website architecture

Usage

module "storage_static_website" {
  source  = "jdpleiness/storage-static-website/google"
  version = "~> 2.0.0"

  bucket_name = "your-website-domain-name"
  project_id  = "your-project-id"
}

Note: Google Cloud Storage only supports HTTP. In order to serve your content through a custom domain over SSL you will need to setup a load balancer or use a third party content delivery network with Cloud Storage.

Authors

This project is maintained by Jacob Pleiness.

@jacobpleiness

License

This code is released under the Apache 2.0 License. Please see LICENSE for more details.