/terraform-google-storage-static-website

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

Primary LanguageHCLApache License 2.0Apache-2.0

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.