简体   繁体   中英

AWS API Gateway and NLB integration

I am trying to integrate AWS API Gateway with the AWS NLB. I am building an microservices architecture project in which I have around 20 microservices which I want to be load balanced through NLB and deploy all the microservices to ECS fargate.

Now the problem is whenever I am trying to integrate the AWS NLB to AWS Api gateway I need to add every api in the aws api gateway.

But what I want is Make VPC for AWS NLB in api gateway and just make one api and my all api's can be router through that api only. For example if I have 1000 API's I need to add all of them insided my api gateway.

Please help.

Are these microservices HTTP? If so you should use the ALB with host/path routing. You should be able to make a base proxy integration that passes all calls through it. That will work for the NLB or the ALB

https://docs.aws.amazon.com/apigateway/latest/developerguide/api-gateway-set-up-simple-proxy.html

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM