Skip to content

Latest commit

 

History

History
57 lines (45 loc) · 4.72 KB

File metadata and controls

57 lines (45 loc) · 4.72 KB

Component: load-balancer

Requirements

Name Version
terraform >= 1.0.0
digitalocean ~> 2.0

Providers

Name Version
digitalocean ~> 2.0

Modules

No modules.

Resources

Name Type
digitalocean_loadbalancer.this resource
digitalocean_project_resources.this resource

Inputs

Name Description Type Default Required
algorithm The load balancing algorithm used to determine which backend Droplet will be selected by a client string "round_robin" no
droplet_ids List of Droplet IDs that are meant to be associated with the Load Balancer list(string) [] no
droplet_tag The name of a Droplet tag corresponding to Droplets to be assigned to the Load Balancers string null no
enable_backend_keepalive A boolean value indicating whether HTTP keepalive connections are maintained to target Droplets bool false no
enable_proxy_protocol A boolean value indicating whether PROXY Protocol should be used to pass information from connecting client requests to the backend service bool false no
forwarding_rules List of forwarding rules to be assigned with the Load Balancer
list(object({
entry_port = number,
entry_protocol = string,
target_port = number,
target_protocol = string,
certificate_name = optional(string),
tls_passthrough = optional(bool)
}))
n/a yes
healthcheck Healthcheck configuration to apply to the Load Balancer
object({
port = number,
protocol = string,
path = optional(string),
check_interval_seconds = optional(number),
unhealthy_threshold = optional(number),
healthy_threshold = optional(number)
})
null no
name Canonical name to give the Load Balancer string n/a yes
project_id The ID of the project to assign the resources to string null no
redirect_http_to_https A boolean value indicating whether HTTP requests to the Load Balancer on port 80 will be redirected to HTTPS on port 443 bool false no
region The DigitalOcean region to deploy resources to string "nyc3" no
size The size of the Load Balancer string "lb-small" no
sticky_sessions A sticky_sessions block to be assigned to the Load Balancer.
object({
type = string,
cookie_name = optional(string),
cookie_ttl_seconds = optional(number)
})
{
"type": "none"
}
no
vpc_uuid The ID of the VPC where the load balancer will be located string null no

Outputs

Name Description
id The ID of the Load Balancer
ip The IP of the Load Balancer
name The Name of the Load Balancer
project ID of the project the Load Balancer belongs to
region The region of the Load Balancer
urn The uniform resource name for the Load Balancer