1 Resposta
- Mais recentes
- Mais votos
- Mais comentários
0
This document may help you debug the issue - https://aws.amazon.com/premiumsupport/knowledge-center/documentdb-cannot-connect/
In particular, the first thing to check would be that the security group for DocumentDB allows incoming traffic from the security group of the EC2 machine on the documentDB port, which by default is 27017
In my case it dint work though Port 27017, was configured with Security group of EC2 instance in the Inbound rule of the Regional Cluster.
Conteúdo relevante
- Como soluciono problemas de acesso à minha instância do EC2 usando uma conexão SSH via bastion host?AWS OFICIALAtualizada há 3 anos
- AWS OFICIALAtualizada há 8 meses
- Como posso anunciar rotas de VPC em uma conexão do Direct Connect para uma rede on-premises via BGP?AWS OFICIALAtualizada há 7 meses
You can choose between two options. The first option is to create a single security group and allow all traffic (0.0.0.0) to attach both resources. The second option involves using two security groups: one for DocumentDB and another for the EC2 instance. For the DocumentDB security group, enable port 27017 with custom TCP, specifying the source as the EC2 security group name. Additionally, for the EC2 instance security group, allow SSH access by specifying the SSH port along with either your specific IP or your organization's IP.