arvancloud_cdn_domain_load_balancer_pool (Resource)
Domain's Load Balancer Pool.
Example Usage
resource "arvancloud_cdn_domain_load_balancer" "example" {
domain = "cdn-terraform.ir"
name = "from-terraform"
description = "An example load balancer"
status = true
method = "cluster_rr"
time_slice = "10s"
}
resource "arvancloud_cdn_domain_load_balancer_pool" "example" {
domain = arvancloud_cdn_domain_load_balancer.example.domain
load_balancer = arvancloud_cdn_domain_load_balancer.example.id
name = "pool-name"
description = "Pool description"
status = true
priority = 0
method = "cluster_rr"
keepalive = "on"
regions = ["THR"]
next_upstream_tcp = "on"
next_upstream_codes = {
get = [500, 404]
head = [503]
options = [404],
delete = [502]
}
}
Schema
Required
domain
(String) UUID or the name of the domain.keepalive
(String) Keepalive setting of the load balancer pool.load_balancer
(String) UUID of the load balancer.method
(String) Method of the load balancer pool.name
(String) Name of the load balancer pool.priority
(Number) Priority of the load balancer pool.regions
(List of String) Regions where the load balancer pool is available.status
(Boolean) Status of the load balancer pool.
Optional
description
(String) Description of the load balancer pool.id
(String) UUID of the load balancer pool.next_upstream_codes
(Map of List of Number) Next upstream codes of the load balancer pool.next_upstream_tcp
(String) Next upstream TCP setting of the load balancer pool.
Read-Only
last_updated
(String) Timestamp of the last Terraform update of the domain.