oci_load_balancer_backend

This resource provides the Backend resource in Oracle Cloud Infrastructure Load Balancer service.

Adds a backend server to a backend set.

Example Usage

resource "oci_load_balancer_backend" "test_backend" {
	#Required
	backendset_name = oci_load_balancer_backend_set.test_backend_set.name
	ip_address = var.backend_ip_address
	load_balancer_id = oci_load_balancer_load_balancer.test_load_balancer.id
	port = var.backend_port

	#Optional
	backup = var.backend_backup
	drain = var.backend_drain
	max_connections = var.backend_max_connections
	offline = var.backend_offline
	weight = var.backend_weight
}

Argument Reference

The following arguments are supported:

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

Attributes Reference

The following attributes are exported:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Backend * update - (Defaults to 20 minutes), when updating the Backend * delete - (Defaults to 20 minutes), when destroying the Backend

Import

Backends can be imported using the id, e.g.

$ terraform import oci_load_balancer_backend.test_backend "loadBalancers/{loadBalancerId}/backendSets/{backendSetName}/backends/{backendName}"