oci_load_balancer_listener

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

Adds a listener to a load balancer.

Example Usage

resource "oci_load_balancer_listener" "test_listener" {
	#Required
	default_backend_set_name = oci_load_balancer_backend_set.test_backend_set.name
	load_balancer_id = oci_load_balancer_load_balancer.test_load_balancer.id
	name = var.listener_name
	port = var.listener_port
	protocol = var.listener_protocol

	#Optional
	connection_configuration {
		#Required
		idle_timeout_in_seconds = var.listener_connection_configuration_idle_timeout_in_seconds

		#Optional
		backend_tcp_proxy_protocol_version = var.listener_connection_configuration_backend_tcp_proxy_protocol_version
	}
	hostname_names = [oci_load_balancer_hostname.test_hostname.name]
	path_route_set_name = oci_load_balancer_path_route_set.test_path_route_set.name
	routing_policy_name = oci_load_balancer_load_balancer_routing_policy.test_load_balancer_routing_policy.name
	rule_set_names = [oci_load_balancer_rule_set.test_rule_set.name]
	ssl_configuration {
        #Optional
		certificate_name = oci_load_balancer_certificate.test_certificate.name
		has_session_resumption = var.listener_ssl_configuration_has_session_resumption
		certificate_ids = var.listener_ssl_configuration_certificate_ids
		cipher_suite_name = var.listener_ssl_configuration_cipher_suite_name
		protocols = var.listener_ssl_configuration_protocols
		server_order_preference = var.listener_ssl_configuration_server_order_preference
		trusted_certificate_authority_ids = var.listener_ssl_configuration_trusted_certificate_authority_ids
		verify_depth = var.listener_ssl_configuration_verify_depth
		verify_peer_certificate = var.listener_ssl_configuration_verify_peer_certificate
	}
}

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

Import

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

$ terraform import oci_load_balancer_listener.test_listener "loadBalancers/{loadBalancerId}/listeners/{listenerName}"