oci_network_load_balancer_backend

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

Adds a backend server to a backend set.

Example Usage

resource "oci_network_load_balancer_backend" "test_backend" {
    #Required
    backend_set_name = oci_network_load_balancer_backend_set.test_backend_set.name
    network_load_balancer_id = oci_network_load_balancer_network_load_balancer.test_network_load_balancer.id
    port = var.backend_port

    #Optional
    ip_address = var.backend_ip_address
    is_backup = var.backend_is_backup
    is_drain = var.backend_is_drain
    is_offline = var.backend_is_offline
    name = var.backend_name
    target_id = oci_cloud_guard_target.test_target.id
    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_network_load_balancer_backend.test_backend "networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}/backends/{backendName}"