Add consecutive_down and consecutive_up parameters to cloudflare_load_balancer_monitor #1876
Labels
kind/enhancement
Categorizes issue or PR as related to improving an existing feature.
service/load_balancing
Categorizes issue or PR as related to the Load Balancing service.
triage/accepted
Indicates an issue or PR is ready to be actively worked on.
Current Terraform and Cloudflare provider version
terraform {
required_providers {
vault = {
source = "hashicorp/vault"
}
cloudflare = {
source = "cloudflare/cloudflare"
version = "~> 3.16.0"
}
}
required_version = ">= 1.0"
backend "remote" {
organization = "bmgf"
}
}
Description
Via the Cloudflare API (https://api.cloudflare.com/#account-load-balancer-monitors-create-monitor) you can set the consecutive_down and consecutive_up parameter values for the Cloudflare Load Balancer Monitor resource but not with the Terraform Provider. Can we have these added?
Use cases
We are managing our LB Monitors via Terraform as with everything else. Having a consecutive_up and consecutive_down parameter will give us more flexibility in fine-tuning the monitors we use for our LB pools.
Potential Terraform configuration
resource "cloudflare_load_balancer_monitor" "lb_monitor" {
type = "https"
expected_body = "Healthy"
expected_codes = "2xx"
method = "GET"
timeout = 5
path = "/healthcheck"
interval = 10
port = 443
retries = 1
description = "monitor for ${var.zone_name}"
header {
header = "Host"
values = [var.zone_name]
}
allow_insecure = true
follow_redirects = false
consecutive_down = 2
}
References
No response
The text was updated successfully, but these errors were encountered: