2023-01-24 02:14:21 -08:00
|
|
|
variable "project_id" {
|
|
|
|
description = "Project ID"
|
|
|
|
type = string
|
|
|
|
}
|
|
|
|
|
2023-01-25 01:17:46 -08:00
|
|
|
variable "region" {
|
|
|
|
description = "Cloud region where resource will be deployed"
|
|
|
|
type = string
|
|
|
|
default = "europe-west1"
|
|
|
|
}
|
|
|
|
|
|
|
|
variable "run_svc_name" {
|
|
|
|
description = "Cloud Run service name"
|
|
|
|
type = string
|
|
|
|
default = "hello"
|
|
|
|
}
|
|
|
|
|
2023-01-24 02:14:21 -08:00
|
|
|
variable "image" {
|
|
|
|
description = "Container image to deploy"
|
|
|
|
type = string
|
2023-01-26 05:04:45 -08:00
|
|
|
default = "us-docker.pkg.dev/cloudrun/container/hello"
|
2023-01-25 01:17:46 -08:00
|
|
|
}
|
|
|
|
|
2023-01-26 07:42:49 -08:00
|
|
|
variable "custom_domain" {
|
|
|
|
description = "Custom domain for the Load Balancer"
|
|
|
|
type = string
|
|
|
|
default = null
|
|
|
|
}
|
2023-01-30 07:53:23 -08:00
|
|
|
|
|
|
|
variable "ingress_settings" {
|
|
|
|
description = "Ingress traffic sources allowed to call the service"
|
|
|
|
type = string
|
|
|
|
default = "all"
|
|
|
|
}
|
2023-01-30 11:30:35 -08:00
|
|
|
|
|
|
|
variable "security_policy" {
|
2023-02-02 12:47:11 -08:00
|
|
|
description = "Security policy (Cloud Armor) to enforce in the LB"
|
2023-01-30 11:30:35 -08:00
|
|
|
type = object({
|
2023-02-07 12:01:28 -08:00
|
|
|
enabled = optional(bool, false)
|
|
|
|
ip_blacklist = optional(list(string), ["*"])
|
|
|
|
path_blocked = optional(string, "/login.html")
|
2023-01-30 11:30:35 -08:00
|
|
|
})
|
2023-02-07 12:01:28 -08:00
|
|
|
default = {}
|
2023-01-30 11:30:35 -08:00
|
|
|
}
|
2023-02-02 12:47:11 -08:00
|
|
|
|
|
|
|
variable "iap" {
|
|
|
|
description = "Identity-Aware Proxy for Cloud Run in the LB"
|
|
|
|
type = object({
|
2023-02-07 12:01:28 -08:00
|
|
|
enabled = optional(bool, false)
|
|
|
|
app_title = optional(string, "Cloud Run Explore Application")
|
|
|
|
oauth2_client_name = optional(string, "Test Client")
|
|
|
|
email = optional(string)
|
2023-02-02 12:47:11 -08:00
|
|
|
})
|
2023-02-07 12:01:28 -08:00
|
|
|
default = {}
|
2023-02-03 02:37:56 -08:00
|
|
|
}
|