0

I have a document db in amazon aws.I access this dbye with mongo shell. I want to send the json file that I prepared to this document db from mylocal. How can I do that? How can I turn this mongo db out.

import json
import pymongo

# Making Connection
try:

    myclient = pymongo.MongoClient("mongodb://xxx:zzz@/sample address")
    print("Connected to MongoDB")
except Exception as e:
    print(e)
5
  • this will help stackoverflow.com/questions/49510049/… Commented Jul 16, 2020 at 9:07
  • this is on mongodb server ie aws. i want to open this mongodb to my local Commented Jul 16, 2020 at 11:08
  • you can connect to the mongo server in aws with the url Commented Jul 16, 2020 at 11:33
  • FileNotFoundError: [Errno 2] No such file or directory: 'rds-combined-ca-bundle.pem' Commented Jul 16, 2020 at 12:36
  • I get an error like this. I downloaded the .pem file. Commented Jul 16, 2020 at 12:37

0

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.