FAQ | This is a LIVE service | Changelog

Commit 0a5a3bc4 authored by Dr Abraham Martin's avatar Dr Abraham Martin
Browse files

feat: add support for local_files_dir

local_files_dir is used by the gcp-function module. Add support to pass this variable to the call to this module.
parent 1e9305cf
Loading
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -184,6 +184,8 @@ module "uptime_check_auth_proxy" {
  environment_variables = {
    TARGET_URL = "https://${trimsuffix(var.host, "/")}/${trimprefix(coalesce(var.uptime_check.path, "/"), "/")}"
  }

  local_files_dir = var.local_files_dir
}

resource "google_cloud_run_service_iam_member" "uptime_check_invoker" {
+9 −3
Original line number Diff line number Diff line
@@ -51,9 +51,15 @@ variable "alert_notification_channels" {
EOL
}

# Terraform 0.14 has support for object types with optional attributes, although the feature is
# experimental. Once we transition to a version of Terraform where the feature is no longer
# experimental, we should make use of the feature.
variable "local_files_dir" {
  description = <<-EOT
    A local directory where files may be created which persist between runs but
    which are not checked into source control.
    This variable is only used to be passed to the gcp-function module call.
  EOT
  type        = string
  default     = null
}

variable "uptime_check" {
  type        = map(any)