oci_load_balancer_load_balancer_routing_policy

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

Adds a routing policy to a load balancer. For more information, see Managing Request Routing.

Example Usage

resource "oci_load_balancer_load_balancer_routing_policy" "test_load_balancer_routing_policy" {
	#Required
	condition_language_version = var.load_balancer_routing_policy_condition_language_version
	load_balancer_id = oci_load_balancer_load_balancer.test_load_balancer.id
	name = var.load_balancer_routing_policy_name
	rules {
		#Required
		actions {
			#Required
			backend_set_name = oci_load_balancer_backend_set.test_backend_set.name
			name = var.load_balancer_routing_policy_rules_actions_name
		}
		condition = var.load_balancer_routing_policy_rules_condition
		name = var.load_balancer_routing_policy_rules_name
	}
}

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 Load Balancer Routing Policy * update - (Defaults to 20 minutes), when updating the Load Balancer Routing Policy * delete - (Defaults to 20 minutes), when destroying the Load Balancer Routing Policy

Import

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

$ terraform import oci_load_balancer_load_balancer_routing_policy.test_load_balancer_routing_policy "loadBalancers/{loadBalancerId}/routingPolicies/{routingPolicyName}"