You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Step 2: Create a target group pointing at your resource
57
-
58
-
The target group is how the NLB knows where to forward traffic.
32
+
The target group is how the NLB will know where to forward traffic. AWS requires a target group when creating a load balancer, so we'll set this up first.
59
33
60
34
<Steps>
61
35
<Steptitle="Open the target groups page">
@@ -74,7 +48,7 @@ The target group is how the NLB knows where to forward traffic.
74
48
-**Name**: e.g. `trigger-postgres-tg`
75
49
-**Protocol**: TCP
76
50
-**Port**: the port your resource listens on (5432 for Postgres, 6379 for Redis, 3306 for MySQL, etc.)
77
-
-**VPC**: same VPC as the NLB
51
+
-**VPC**: the VPC where your resource lives (this must match the VPC you'll use for the NLB)
78
52
-**Health check protocol**: TCP
79
53
</Step>
80
54
<Steptitle="Register your targets">
@@ -94,19 +68,32 @@ The target group is how the NLB knows where to forward traffic.
94
68
</Step>
95
69
</Steps>
96
70
97
-
## Step 3: Add a listener on the NLB
71
+
## Step 2: Create an internal Network Load Balancer
72
+
73
+
The NLB is what PrivateLink exposes to Trigger.dev. It must be **internal** (not internet-facing).
98
74
99
75
<Steps>
100
-
<Steptitle="Open the NLB you created">
101
-
Go to **EC2 → Load Balancers**, select your NLB, and switch to the **Listeners** tab.
76
+
<Steptitle="Open the EC2 console">
77
+
Go to **EC2 → Load Balancers → Create load balancer** and choose **Network Load Balancer**.
78
+
</Step>
79
+
<Steptitle="Configure the basics">
80
+
-**Name**: something descriptive, e.g. `trigger-postgres-nlb`
81
+
-**Scheme**: **Internal**
82
+
-**IP address type**: IPv4
102
83
</Step>
103
-
<Steptitle="Add a TCP listener">
84
+
<Steptitle="Choose VPC and subnets">
85
+
Pick the same VPC as your target group. Select one private subnet per AZ that should serve traffic.
86
+
Each subnet you select adds an availability zone to the endpoint.
87
+
</Step>
88
+
<Steptitle="Add a TCP listener forwarding to your target group">
89
+
Under **Listeners and routing**, configure:
90
+
104
91
-**Protocol**: TCP
105
-
-**Port**: same as your target group port (5432, 6379, etc.)
106
-
-**Default action**: forward to the target group you just created
92
+
-**Port**: same as your target group port (5432 for Postgres, 6379 for Redis, etc.)
93
+
-**Default action**: forward to the target group you created in Step 1
107
94
</Step>
108
-
<Steptitle="Save">
109
-
Click **Add**. The listener becomes active immediately.
0 commit comments