简体   繁体   English

从 AWS 服务访问位于 VPN 后面的 Rest 端点

[英]Access Rest Endpoint placed behind VPN from an AWS service

I have an AWS SNS Subscription created, that needs to hook-up to a REST endpoint in my application.我创建了一个AWS SNS 订阅,它需要连接到我的应用程序中的 REST 端点。

This REST endpoint, however, is accessible only within my corporate VPN.然而,这个 REST 端点只能在我的公司 VPN 中访问。 I do have VPCs configured, but I'm not sure how to associate that VPC with my REST endpoint.我确实配置了 VPC,但我不确定如何将该 VPC 与我的 REST 端点相关联。

Can someone pls let me know how this can be achieved?有人可以让我知道如何实现吗?

From what I understand is that you have private REST API in your VPC.据我了解,您的 VPC 中有私有 REST API The private API can't be accessed from outside of the VPC.无法从 VPC 外部访问私有 API。

This means that you can't directly subscribe it to your SNS.这意味着您不能直接将其订阅到您的 SNS。 Therefore, you have to proxy your requests.因此,您必须代理您的请求。 Probably the easiest way to do it would be to use a lambda function integrated with your VPC .可能最简单的方法是使用与您的 VPC 集成的 lambda function In this scenario you would have:在这种情况下,您将拥有:

SNS ---> Lambda associated with VPC ---> private REST API

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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