amazon-web-services - 连接到 AWS DocumentDB 的问题

标签 amazon-web-services amazon-ec2 aws-documentdb-mongoapi

我在亚马逊创建了一个集群和一个 DocumentDB 实例。当我尝试连接到我的本地 SSH (MacOS) 时,它显示以下消息:

enter image description here

当我尝试加入 MongoDB Compass 社区时:

mongodb://Mobify:<My-Password>@docdb-2019-04-07-23-28-45.cluster-cmffegva7sne.us-east-2.docdb.amazonaws.com:27017/?ssl=true&ssl_ca_certs=rds-combined-ca-bundle.pem&replicaSet=rs0

它加载了很多分钟,最后得到了这个结果:

enter image description here

解决这个问题后,我想知道是否可以将一个 documentDB 集群连接到另一个可用区域中的实例......我在俄亥俄州有我的 DocumentDB,在圣保罗有一个 EC2 .. .这可能吗?

最佳答案

Amazon DocumentDB 集群部署在 VPC 中,以提供与 Internet 的强大网络隔离。要从 VPC 外部连接到您的集群,请参阅以下内容:https://docs.aws.amazon.com/documentdb/latest/developerguide/connect-from-outside-a-vpc.html

关于amazon-web-services - 连接到 AWS DocumentDB 的问题,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55578915/

相关文章:

javascript - 是否可以通过 CloudFront CDN 进行 AWS 内容路由?

ubuntu - 如何读取 AWS ec2 实例日志中的 auth.logs?

networking - 在 ec2 中使用两个可用区会引入网络分区吗?

mongodb - MongoDB 中文档引用关系的 Mongoose 实现

aws-documentdb-mongoapi - AWS DocumentDB 是否支持 MongoDB 2dshpere 索引?

amazon-web-services - 具有 "own"资源参数的 AWS::IAM::策略定义

security - 是否可以限制开发人员可以创建的策略?

amazon-web-services - 如何将输入传递到 CloudFormation 中 Step Function 目标的事件规则?

node.js - 未找到 sudo npm install 命令

node.js - 无法确定 Mongoose SSL 与 DocumentDB 的连接错误