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
5 changes: 3 additions & 2 deletions main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,15 @@ module "serverless_negs" {
# Backend Bucket Services
module "buckets" {
for_each = var.buckets
source = "github.com/brandlive1941/terraform-module-backend-bucket?ref=v1.1.0"
source = "github.com/brandlive1941/terraform-module-backend-bucket?ref=v1.2.0"
project_id = var.project_id
name = each.value["name"]
location = each.value["location"]
service_name = each.value["service_name"]
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"]
custom_response_headers = each.value.backend["custom_response_headers"]
cors_policy = each.value.backend["cors_policy"]
iap_config = each.value.backend["iap_config"]
log_config = each.value.backend["log_config"]
Expand Down Expand Up @@ -154,5 +155,5 @@ resource "google_compute_url_map" "urlmap" {
}
}
}
depends_on = [ module.buckets, module.lb.backend_services ]
depends_on = [module.buckets, module.lb.backend_services]
}
8 changes: 2 additions & 6 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -8,11 +8,6 @@ variable "region" {
description = "GCP region where the loadbalancer will be created"
}

variable "environment" {
type = string
description = "The application environment"
}

variable "static_ip_name" {
type = string
description = "Name of the external-ip. the name must be 1-63 characters long and match the regular expression [a-z]([-a-z0-9]*[a-z0-9])?"
Expand Down Expand Up @@ -135,7 +130,8 @@ variable "buckets" {
})))
error_service = optional(string)
}), {})
cors_policy = optional(set(any))
custom_response_headers = optional(list(string))
cors_policy = optional(set(any))
iap_config = optional(object({
enable = bool
oauth2_client_id = optional(string)
Expand Down