API Gateway Private Integration with multiple NLB listeners

1

A customer wants to use API Gateway Private integration to access applications running on EC2 instances. The private integration required a Network Load Balancer in front of the EC2 instances.

They have ~100 of such applications. To save costs, can they share the NLB with multiple API Gateway Resources and Methods?

Example:

/app1 on the APIGW will send traffic to listener1(port 80) on the NLB
/app2 on the APIGW will send traffic to listener2(port 8000) on the NLB

1 Risposta
1
Risposta accettata

Yes, you can do that. Your NLB can have multiple target groups for different applications, each with its own listener. On the API Gateway side, you can configure a VPCLink integration type and specify something like http://example.com:8000 for the Endpoint URL. There are obviously limits on NLB in terms of the number of listeners, but as long as you are within those, you should be able to save some money by using the same NLB for multiple applications.

AWS
con risposta 5 anni fa

Accesso non effettuato. Accedi per postare una risposta.

Una buona risposta soddisfa chiaramente la domanda, fornisce un feedback costruttivo e incoraggia la crescita professionale del richiedente.

Linee guida per rispondere alle domande