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

风流意气都作罢 提交于 2019-12-18 23:48:09

问题


I deployed a web service in my private subnet without ELB in public subnet.

Now I want to expose it to public. Can I use API gateway as the http proxy

to make it public?

Anyone knows how to do that?


回答1:


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.




回答2:


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.



来源:https://stackoverflow.com/questions/37581698/how-to-config-the-api-gateway-for-the-service-deployed-in-private-subnet

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