@@ -71,7 +71,6 @@ To learn more about generating the |svc-api-key|, see:
71
71
- :cloudmgr:`Cloud Manager API Access </tutorial/configure-public-api-access>`
72
72
- :opsmgr:`Ops Manager API Acess </tutorial/configure-public-api-access>`
73
73
74
-
75
74
Procedure
76
75
---------
77
76
@@ -92,75 +91,60 @@ Procedure
92
91
93
92
.. include:: /includes/steps/quick-start-atlas-config-mcli.rst
94
93
95
- .. _quick-start-atlas-create-cluster:
96
-
97
- Create a Cluster
98
- ~~~~~~~~~~~~~~~~
99
-
100
- Use the :ref:`mcli-atlas-cluster-create-command` command to create
101
- a cluster in |service|.
102
-
103
- .. include:: /includes/admonitions/note-atlas-api-free-tier-limits.rst
104
-
105
- The following command creates a sample paid-tier cluster with the following settings:
106
-
107
- - Cluster name: ``getStarted``
108
- - Service provider: ``AWS``
109
- - Provider region: ``US_EAST-1``
110
- - Cluster tier: ``M10``
111
- - Disk size: ``2`` GB
112
- - MongoDB version: ``4.4``
113
- - Replica set members: ``3``
114
-
115
- .. code-block:: sh
116
-
117
- mongocli atlas cluster create getStarted --provider AWS --region US_EAST_1 --tier M10 --diskSizeGB 10 --mdbVersion {+mdbVersion+} --members 3
94
+ Configure an |service| Cluster
95
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
118
96
119
- .. _quick-start-whitelist:
97
+ Use the :ref:`mcli-atlas-quick-start-cmd` command to create an
98
+ ``M2`` cluster in |service|, add your IP addresses or |cidr|
99
+ blocks to the project IP access list, and create a MongoDB
100
+ database user to access the database.
120
101
121
- Configure Your IP Access List
122
- ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
123
-
124
- |service| only allows incoming connections to the cluster from
125
- entries in the project’s access list. You can add individual IP
126
- addresses or |cidr| blocks to the project IP access list.
102
+ You can run this command in two ways:
127
103
128
- |service| supports specifying private IP addresses with VPC peered
129
- connections. For more information, see :atlas:`Set up a Network
130
- Peering Connection </security-vpc-peering/index.html>`.
104
+ - Interactive mode - the command prompts you for the cluster settings
105
+ - Non-interactive mode - you run the command with the cluster settings
131
106
132
- Run the following command to add entries to your IP access list.
133
- Replace the IP address with your connection IP address.
107
+ Click the tab to see the command for your preferred
108
+ mode.
109
+
110
+ .. tabs::
134
111
135
- .. code-block:: sh
136
-
137
- mongocli atlas accesslist create <your-IP-address> --type ipAddress
112
+ .. tab:: Interactive Mode
113
+ :tabid: interactive
138
114
139
- .. _quick-start-create-mdb-user:
115
+ The command prompts you for the following
116
+ settings. Enter the corresponding value when prompted:
140
117
141
- Create a MongoDB User
142
- ~~~~~~~~~~~~~~~~~~~~~
118
+ - Cluster name: ``getStarted``
119
+ - Service provider: ``AWS``
120
+ - Provider region: ``US_EAST-1``
121
+ - MongoDB DB username: ``testUser``
122
+ - Password: ``<changeMe>``
123
+ - IP address to add to the Access List:
124
+ ``<your-IP-address>``
125
+ - Download and install MongoDB Shell: ``N``
143
126
144
- If the |service| project does not yet have a MongoDB database user
145
- configured, you must create one in order to access the database.
146
- Run the :ref:`mcli-atlas-dbuser-create-command` command to add a
147
- MongoDB database user.
148
-
149
- The command creates a MongoDB user with the following attributes:
127
+ .. code-block:: sh
150
128
151
- - Username: ``User1``
152
- - Password: ``ChangeThisPasswordToSomethingSecure``
129
+ mongocli atlas quickstart
153
130
154
- .. note::
131
+ .. tab:: Non-Interactive Mode
132
+ :tabid: noninteractive
155
133
156
- The tutorial uses the password ``ChangeThisPasswordToSomethingSecure``. Replace this
157
- password with a strong password.
134
+ The command creates a sample shared-tier cluster
135
+ with the following settings:
158
136
159
- - Role: |service| admin
137
+ - Cluster name: ``getStarted``
138
+ - Service provider: ``AWS``
139
+ - Provider region: ``US_EAST-1``
140
+ - Cluster tier: ``M2``
141
+ - Disk size: ``2`` GB
142
+ - MongoDB version: ``4.4``
143
+ - Replica set members: ``3``
160
144
161
- .. code-block:: sh
162
-
163
- mongocli atlas dbuser create --username User1 --password ChangeThisPasswordToSomethingSecure --role atlasAdmin@admin
145
+ .. code-block:: sh
146
+
147
+ mongocli atlas quickstart --clusterName getStarted --provider AWS --region US_EAST_1 --username testUser --password changeMe accessListIp <192.0.2.15>
164
148
165
149
.. _quick-start-atlas-monitor-cluster:
166
150
0 commit comments