oci_network_load_balancer_listener

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

Adds a listener to a network load balancer.

Example Usage

resource "oci_network_load_balancer_listener" "test_listener" {
	#Required
	default_backend_set_name = oci_network_load_balancer_backend_set.test_backend_set.name
	name = var.listener_name
	network_load_balancer_id = oci_network_load_balancer_network_load_balancer.test_network_load_balancer.id
	port = var.listener_port
	protocol = var.listener_protocol
	
	#Optional
	ip_version = var.listener_ip_version
	is_ppv2enabled = var.listener_is_ppv2enabled
}

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_network_load_balancer_listener.test_listener "networkLoadBalancers/{networkLoadBalancerId}/listeners/{listenerName}"