amazon-web-services - Can I use SNS subscription with internal ALB endpoint within the VPC?
问题描述
I have an SNS uses an HTTP subscription, the endpoint is an application load balancer which is created as an internal ALB within the VPC.
For SNS to call the endpoint I have to make the endpoint publicly available, I can't make the endpoint public just for SNS as my other use cases are getting addressed within the VPC.
Is there a better way to create a subscription without having to make the endpoint public.
I have for now made the endpoint public, but cant keep it the same forever
Is there a better way to create a subscription without having to make the endpoint public.
解决方案
一种可能的解决方案是订阅 Lambda 函数(部署在您的 VPC 中)以将请求代理到您的内部 ALB。
有关您的函数将接收的事件示例,请参阅将 AWS Lambda 与 Amazon SNS 结合使用。
请注意,无法像使用 HTTP/HTTPS 端点时那样配置自定义传递重试策略。相反,您将拥有基本的AWS Lambda Retry Behavior。
推荐阅读
- javascript - 承诺 {
.forEach 不是函数 - android - 当iOS应用程序在后台时,android设备可以检测到充当外围设备的iOS设备吗?
- c# - 将每个 id 的数据合并到一行并删除重复项
- c# - 如何将自定义属性添加到 asp.net 下拉列表
- java - 如何在从服务引发异常的休息控制器中模拟异常
- oracle - 从用分隔符逗号分隔的 csv 文件中的记录中选择一个用双引号括起来的字符串
- python - 使用 selenium 解码 base64 编码的 url
- c# - UWP中XYZ点的3D可视化?
- jquery - 如何使用 jQuery 根据用户输入过滤 API 值
- c - 我的代码在这里有错误吗?C、队列数据结构