How to config the api gateway for the service deployed in private subnet?

China☆狼群 提交于 2019-11-30 19:12:50

The service has to be public for API Gateway to be able to connect to it. You can use SSL Client certs to restrict access to only API Gateway. Otherwise, API Gateway would not be a good solution to your issue.

Update: You can now configure API Gateway to access resources inside a VPC using VPC Link.

In addition to @Mark B's excellent answer, you could also consider using a Lambda function as a proxy.

API Gateway -> Lambda -> ELB

You can configure Lambda to access VPC resources. Lambda would have to buffer the entire result before returning it, so this would slow down large responses.

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!