diff --git a/main.tf b/main.tf index 584c20a..af584b5 100644 --- a/main.tf +++ b/main.tf @@ -54,7 +54,7 @@ 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"] @@ -62,6 +62,7 @@ module "buckets" { 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"] @@ -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] } diff --git a/variables.tf b/variables.tf index 986ba27..fd1ff5e 100644 --- a/variables.tf +++ b/variables.tf @@ -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])?" @@ -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)