This repo contains modules for managing static assets (CSS, JS, images) in GCP.
This project was forked from the great work that Gruntwork has done and has been extended to include new functionality.
- Custom Header Support Added for Buckets
# Accepts a list of headers
variable "custom_headers" {
description = "A list of custom Headers that the HTTP/S load balancer should add to proxied responses"
type = list(string)
default = ["Referrer-Policy: origin"]
}
If you want to quickly launch a static website using Google Cloud Storage, you can run the example that is in the root of this repo. Check out the cloud-storage-static-website example documentation for instructions.
This repo has the following folder structure:
-
root: The root folder contains an example of how to launch a static website using Google Cloud Storage. See cloud-storage-static-website example documentation for the documentation.
-
modules: This folder contains the main implementation code for this Module.
The primary modules are:
-
cloud-storage-static-website: The Cloud Storage Static Website module is used to create a Google Cloud Storage bucket that can be used to host a static website.
-
http-load-balancer-website: The HTTP Load Balancer Website module is used to create a HTTP Load Balancer that routes requests to a Google Cloud Storage bucket for static content hosting, allowing you to also configure SSL with a custom domain name.
-
-
examples: This folder contains examples of how to use the submodules.
-
test: Automated tests for the submodules and examples.
This Module and its Submodules are maintained by SimplyCubed. If you are looking for help or commercial support, send an email to [email protected].
SimplyCubed can help with:
- Setup, customization, and support for this Module.
- Modules and submodules for other types of infrastructure, such as VPCs, Docker clusters, databases, and continuous integration.
- Modules and Submodules that meet compliance requirements.
- Consulting & Training on GCP, Terraform, and DevOps.
Contributions are very welcome! Check out the Contribution Guidelines for instructions.
This Module follows the principles of Semantic Versioning. You can find each new release, along with the changelog, in the Releases Page.
During initial development, the major version will be 0 (e.g., 0.x.y
), which indicates the code does not yet have a stable API. Once we hit 1.0.0
, we will make every effort to maintain a backwards compatible API and use the MAJOR, MINOR, and PATCH versions on each release to indicate any incompatibilities.
Please see LICENSE.txt for details on how the code in this repo is licensed.