Skip to main content
Version: 0.0.25

Table: listener

Table to manage AWS Load Balancer listeners. Before you start using your Application Load Balancer, you must add one or more listeners. A listener is a process that checks for connection requests, using the protocol and port that you configure. The rules that you define for a listener determine how the load balancer routes requests to its registered targets.

Example

INSERT INTO listener (load_balancer_id, port, protocol, target_group_id) VALUES
((SELECT id FROM load_balancer WHERE load_balancer_name = 'lb_name'), 5678, 'tcp',
(SELECT id FROM target_group WHERE target_group_name = 'target_group_name'));

DELETE FROM listener WHERE load_balancer_id = (SELECT id FROM load_balancer WHERE load_balancer_name = 'lb_name');

See

Columns

action_type: FORWARD

Action type for this specific listener

Optional certificate: certificate

Reference to the certificate used by the listener when exposing HTTPs ports

See

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html

Optional listener_arn: string

AWS ARN that identifies the listener

load_balancer: load_balancer

Reference to the load balancer associated to this listener

port: number

Port exposed at the listener

protocol: protocol

Protocol for the exposed port

Optional ssl_policy: string

Type of SSL policy to use

See

https://docs.aws.amazon.com/elasticloadbalancing/latest/application/create-https-listener.html#describe-ssl-policies

target_group: target_group

Reference to the target group associated with this listener