The root folder of this repo shows an example of how to use the cloud-storage-static-website module to launch a static website on top of Google Cloud Storage.
To run this example, you need to:
- Install Terraform.
- Make sure you are in the root folder of the repo.
- Open up
variables.tf
and set secrets at the top of the file as environment variables and fill in any other variables in the file that don't have defaults. terraform init
.terraform plan
.- If the plan looks good, run
terraform apply
.
When the apply
command finishes, this module will output the domain name you can use to test the website in your web browser.