首页 > 解决方案 > 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

AWS Lambda 到 Atlas

标签: mongodbamazon-web-servicesaws-lambda

解决方案


推荐阅读