You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
module"google_compute_http_health_check" {
source="./modules/google-beta/r/google_compute_http_health_check"# check_interval_sec - (optional) is a type of numbercheck_interval_sec=null# description - (optional) is a type of stringdescription=null# healthy_threshold - (optional) is a type of numberhealthy_threshold=null# host - (optional) is a type of stringhost=null# name - (required) is a type of stringname=null# port - (optional) is a type of numberport=null# project - (optional) is a type of stringproject=null# request_path - (optional) is a type of stringrequest_path=null# timeout_sec - (optional) is a type of numbertimeout_sec=null# unhealthy_threshold - (optional) is a type of numberunhealthy_threshold=nulltimeouts=[{
create =null
delete =null
update =null
}]
}
variable"check_interval_sec" {
description="(optional) - How often (in seconds) to send a health check. The default value is 5\nseconds."type=numberdefault=null
}
variable"description" {
description="(optional) - An optional description of this resource. Provide this property when\nyou create the resource."type=stringdefault=null
}
variable"healthy_threshold" {
description="(optional) - A so-far unhealthy instance will be marked healthy after this many\nconsecutive successes. The default value is 2."type=numberdefault=null
}
variable"host" {
description="(optional) - The value of the host header in the HTTP health check request. If\nleft empty (default value), the public IP on behalf of which this\nhealth check is performed will be used."type=stringdefault=null
}
variable"name" {
description="(required) - Name of the resource. Provided by the client when the resource is\ncreated. The name must be 1-63 characters long, and comply with\nRFC1035. Specifically, the name must be 1-63 characters long and\nmatch the regular expression '[a-z]([-a-z0-9]*[a-z0-9])?' which means\nthe first character must be a lowercase letter, and all following\ncharacters must be a dash, lowercase letter, or digit, except the\nlast character, which cannot be a dash."type=string
}
variable"port" {
description="(optional) - The TCP port number for the HTTP health check request.\nThe default value is 80."type=numberdefault=null
}
variable"project" {
description="(optional)"type=stringdefault=null
}
variable"request_path" {
description="(optional) - The request path of the HTTP health check request.\nThe default value is /."type=stringdefault=null
}
variable"timeout_sec" {
description="(optional) - How long (in seconds) to wait before claiming failure.\nThe default value is 5 seconds. It is invalid for timeoutSec to have\ngreater value than checkIntervalSec."type=numberdefault=null
}
variable"unhealthy_threshold" {
description="(optional) - A so-far healthy instance will be marked unhealthy after this many\nconsecutive failures. The default value is 2."type=numberdefault=null
}
variable"timeouts" {
description="nested block: NestingSingle, min items: 0, max items: 0"type=set(object(
{
create =string
delete =string
update =string
}
))
default=[]
}
resource"google_compute_http_health_check""this" {
# check_interval_sec - (optional) is a type of numbercheck_interval_sec=var.check_interval_sec# description - (optional) is a type of stringdescription=var.description# healthy_threshold - (optional) is a type of numberhealthy_threshold=var.healthy_threshold# host - (optional) is a type of stringhost=var.host# name - (required) is a type of stringname=var.name# port - (optional) is a type of numberport=var.port# project - (optional) is a type of stringproject=var.project# request_path - (optional) is a type of stringrequest_path=var.request_path# timeout_sec - (optional) is a type of numbertimeout_sec=var.timeout_sec# unhealthy_threshold - (optional) is a type of numberunhealthy_threshold=var.unhealthy_thresholddynamic"timeouts" {
for_each=var.timeoutscontent {
# create - (optional) is a type of stringcreate=timeouts.value["create"]
# delete - (optional) is a type of stringdelete=timeouts.value["delete"]
# update - (optional) is a type of stringupdate=timeouts.value["update"]
}
}
}