Creating a MongoDB Cluster and inserting a document with Python

Garrett Sweeney
The Startup
Published in
3 min readAug 20, 2019

--

There are many guides on how to create a cluster and use python to insert into the cluster, but here’s by experience creating my first MongoDB cluster.

Below you’ll find “Part1: Cluster Creation” and “Part 2: Inserting a Document with Python”.

Part 1: Cluster Creation

  1. Go to https://cloud.mongodb.com and create an account.
  2. Upon creating an account, you may see a screen like this. Select “Build my first cluster”

3. The default settings for creating a cluster in AWS should work. Just scroll down and type in a name for your cluster.

I named my cluster “FirstCluster”

4. After the cluster is created, you’ll be able to see it in the console. Go ahead and click “Connection”

5. When prompted for connection method, click “Connect Your Application”

--

--