New Quick Start for MongoDB on AWS: URI to connect from application?

0 votes

I can't find any details on how to connect to the cluster from a standalone Java application. I've tried following the general Mongo URI format here (https://docs.mongodb.com/manual/reference/connection-string/) - 

I assume the target should be the Bastion public IP, but I'm not sure what the username and password details should be in the connection string

Aug 28 in AWS by Yamini
21 views

1 answer to this question.

0 votes

Hey @Yamini,

To start off with, configure your putty

Then create a tunnel

ssh -i "whatever.pem" -NL 4444:rabbitmq.cpypigm0kth7.us-east-1.rds.amazonaws.com:5432 ec2-user@<ip address> -v

or using RDS private IP address:

ssh -i “whatever.pem” -NL 4444:10.0.2.210:5432 ec2-user@<ip address> -v

answered Aug 28 by Randy

Related Questions In AWS

0 votes
1 answer

Using pymongo to connect to MongoDB hosted on AWS

Yes, the drivers work independently of any ...READ MORE

answered Sep 14, 2018 in AWS by Priyaj
• 56,900 points
39 views
0 votes
1 answer

Using pymongo to connect to MongoDB hosted on AWS

Yes, the drivers work independently of any ...READ MORE

answered Sep 17, 2018 in AWS by Priyaj
• 56,900 points
30 views
0 votes
1 answer

How can i copy tables from one database to other on AWS?

You can use AWS Data pipeline to ...READ MORE

answered Jul 5, 2018 in AWS by Priyaj
• 56,900 points
66 views
0 votes
1 answer

Quick way to get AWS Account number from the cli tools?

Via "Secure Token Service" using the following ...READ MORE

answered Jul 12, 2018 in AWS by Priyaj
• 56,900 points
80 views
0 votes
1 answer