Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,13 @@ Module Input Variables
- `default_custom_error_response_policy` - Default custom error response policy
- `services` - map cloud run service metadata
- `buckets` - map of gcs bucket metadata
- `name` - GCS bucket name
- `location` - bucket location
- `service_name` - backend bucket service name
- `website` - (optional, default `false`) enable GCS static website hosting; sets `main_page_suffix = index.html` and `not_found_page = index.html` so the load balancer serves `index.html` instead of returning an XML bucket listing
- `hosts` - list of hostnames to route to this bucket
- `path_rules` - map of path rules for URL routing
- `backend` - backend configuration (CDN, IAP, logging, CORS, custom response headers)

Usage
-----
Expand Down
1 change: 1 addition & 0 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ module "buckets" {
name = each.value["name"]
location = each.value["location"]
service_name = each.value["service_name"]
website = each.value["website"]
enable_cdn = each.value.backend["enable_cdn"]
cdn_policy = each.value.backend["cdn_policy"]
default_custom_error_response_policy = each.value.backend["default_custom_error_response_policy"]
Expand Down
1 change: 1 addition & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@ variable "buckets" {
name = string
location = string
service_name = string
website = optional(bool, false)
hosts = list(string)
path_rules = map(object({
paths = list(string)
Expand Down