oci_network_load_balancer_backend_set

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

Adds a backend set to a network load balancer.

Example Usage

resource "oci_network_load_balancer_backend_set" "test_backend_set" {
    #Required
    health_checker {
        #Required
        protocol = var.backend_set_health_checker_protocol

        #Optional
        dns {
            #Required
            domain_name = oci_identity_domain.test_domain.name

            #Optional
            query_class = var.backend_set_health_checker_dns_query_class
            query_type = var.backend_set_health_checker_dns_query_type
            rcodes = var.backend_set_health_checker_dns_rcodes
            transport_protocol = var.backend_set_health_checker_dns_transport_protocol
        }
        interval_in_millis = var.backend_set_health_checker_interval_in_millis
        port = var.backend_set_health_checker_port
        request_data = var.backend_set_health_checker_request_data
        response_body_regex = var.backend_set_health_checker_response_body_regex
        response_data = var.backend_set_health_checker_response_data
        retries = var.backend_set_health_checker_retries
        return_code = var.backend_set_health_checker_return_code
        timeout_in_millis = var.backend_set_health_checker_timeout_in_millis
        url_path = var.backend_set_health_checker_url_path
    }
    name = var.backend_set_name
    network_load_balancer_id = oci_network_load_balancer_network_load_balancer.test_network_load_balancer.id
    policy = var.backend_set_policy

    #Optional
    ip_version = var.backend_set_ip_version
    is_instant_failover_enabled = var.backend_set_is_instant_failover_enabled
    is_fail_open = var.backend_set_is_fail_open
    is_preserve_source = var.backend_set_is_preserve_source
}

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 Set * update - (Defaults to 20 minutes), when updating the Backend Set * delete - (Defaults to 20 minutes), when destroying the Backend Set

Import

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

$ terraform import oci_network_load_balancer_backend_set.test_backend_set "networkLoadBalancers/{networkLoadBalancerId}/backendSets/{backendSetName}"