mongodb - mongodb atlas + aws lambda 无法设置安全白名单?
问题描述
我一直在阅读这几篇文章,但它们有点过时了,所以我只想确认我的理解是否正确。
我目前正在使用 mongodb atlas 并仅使用免费层。我正在考虑使用 aws lambda 定期访问 mongodb 以备份到 s3。
据我了解,我必须打开0.0.0.0
我根本不想做的事情,因为如果它是一个生产数据库,那将是一个坏主意。通过读数直到今天。如果我不想添加0.0.0.0
到 mongodb atlas 白名单中,我必须在 aws 中为 lambda 函数创建一个 VPC,对吗?另外,mongodb atlas 的免费层不支持连接?
提前感谢您对我理解的任何帮助和建议。
这些是我读过的帖子
https://www.mongodb.com/blog/post/introducing-vpc-peering-for-mongodb-atlas
https://www.mongodb.com/blog/post/serverless-development-with-nodejs-aws-lambda-mongodb-atlas
解决方案
推荐阅读
- javascript - 更新数组中数据的 Https 请求
- java - 为什么我可以在 Java 中成功地在 main() 中再次声明一个静态字段?
- javascript - 无法读取未定义的属性“addChild”
- c++ - 迭代 std::vector 的最有效方法是什么,为什么?
- angular - 如何使用响应式表单将验证器添加到表单控件以从角度材料进行匹配输入
- c# - STM32和C#通过ESP8266通信
- python - 如何将日志解析和聚合到数据框(3 行到 1 行)?
- angular - 离子3在api中传递数据
- java - 解析日期 Gson:NumberFormatException
- sql-server - 使用表值参数插入数据时获取多个 scope_identity