oci_load_balancer_rule_set

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

Creates a new rule set associated with the specified load balancer. For more information, see Managing Rule Sets.

Example Usage

resource "oci_load_balancer_rule_set" "test_rule_set" {
	#Required
	items {
		#Required
		action = var.rule_set_items_action

		#Optional
		allowed_methods = var.rule_set_items_allowed_methods
		are_invalid_characters_allowed = var.rule_set_items_are_invalid_characters_allowed
		conditions {
			#Required
			attribute_name = var.rule_set_items_conditions_attribute_name
			attribute_value = var.rule_set_items_conditions_attribute_value

			#Optional
			operator = var.rule_set_items_conditions_operator
		}
		default_max_connections = var.rule_set_items_default_max_connections
		description = var.rule_set_items_description
		header = var.rule_set_items_header
		http_large_header_size_in_kb = var.rule_set_items_http_large_header_size_in_kb
		ip_max_connections {

			#Optional
			ip_addresses = var.rule_set_items_ip_max_connections_ip_addresses
			max_connections = var.rule_set_items_ip_max_connections_max_connections
		}
		prefix = var.rule_set_items_prefix
		redirect_uri {

			#Optional
			host = var.rule_set_items_redirect_uri_host
			path = var.rule_set_items_redirect_uri_path
			port = var.rule_set_items_redirect_uri_port
			protocol = var.rule_set_items_redirect_uri_protocol
			query = var.rule_set_items_redirect_uri_query
		}
		response_code = var.rule_set_items_response_code
		status_code = var.rule_set_items_status_code
		suffix = var.rule_set_items_suffix
		value = var.rule_set_items_value
	}
	load_balancer_id = oci_load_balancer_load_balancer.test_load_balancer.id
	name = var.rule_set_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 Rule Set * update - (Defaults to 20 minutes), when updating the Rule Set * delete - (Defaults to 20 minutes), when destroying the Rule Set

Import

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

$ terraform import oci_load_balancer_rule_set.test_rule_set "loadBalancers/{loadBalancerId}/ruleSets/{ruleSetName}"