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.
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.
This project is maintained by Jacob Pleiness.
This code is released under the Apache 2.0 License. Please see LICENSE for more details.