oci_load_balancer_backend_set

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

Adds a backend set to a load balancer.

Supported Aliases

Example Usage

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

		#Optional
		interval_ms = var.backend_set_health_checker_interval_ms
		is_force_plain_text = var.backend_set_health_checker_is_force_plain_text
		port = var.backend_set_health_checker_port
		response_body_regex = var.backend_set_health_checker_response_body_regex
		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
	}
	load_balancer_id = oci_load_balancer_load_balancer.test_load_balancer.id
	name = var.backend_set_name
	policy = var.backend_set_policy

	#Optional
	backend_max_connections = var.backend_set_backend_max_connections
	lb_cookie_session_persistence_configuration {

		#Optional
		cookie_name = var.backend_set_lb_cookie_session_persistence_configuration_cookie_name
		disable_fallback = var.backend_set_lb_cookie_session_persistence_configuration_disable_fallback
		domain = var.backend_set_lb_cookie_session_persistence_configuration_domain
		is_http_only = var.backend_set_lb_cookie_session_persistence_configuration_is_http_only
		is_secure = var.backend_set_lb_cookie_session_persistence_configuration_is_secure
		max_age_in_seconds = var.backend_set_lb_cookie_session_persistence_configuration_max_age_in_seconds
		path = var.backend_set_lb_cookie_session_persistence_configuration_path
	}
	session_persistence_configuration {
		#Required
		cookie_name = var.backend_set_session_persistence_configuration_cookie_name

		#Optional
		disable_fallback = var.backend_set_session_persistence_configuration_disable_fallback
	}
	ssl_configuration {

		#Optional
		certificate_ids = var.backend_set_ssl_configuration_certificate_ids
		certificate_name = oci_load_balancer_certificate.test_certificate.name
		cipher_suite_name = var.backend_set_ssl_configuration_cipher_suite_name
		protocols = var.backend_set_ssl_configuration_protocols
		server_order_preference = var.backend_set_ssl_configuration_server_order_preference
		trusted_certificate_authority_ids = var.backend_set_ssl_configuration_trusted_certificate_authority_ids
		verify_depth = var.backend_set_ssl_configuration_verify_depth
		verify_peer_certificate = var.backend_set_ssl_configuration_verify_peer_certificate
	}
}

Note: The sessionPersistenceConfiguration (application cookie stickiness) and lbCookieSessionPersistenceConfiguration (LB cookie stickiness) attributes are mutually exclusive. To avoid returning an error, configure only one of these two attributes per backend set.

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_load_balancer_backend_set.test_backend_set "loadBalancers/{loadBalancerId}/backendSets/{backendSetName}"