You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/setup/index.mdx
+53-17Lines changed: 53 additions & 17 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,35 +2,45 @@
2
2
sidebar_position: 2
3
3
---
4
4
5
+
importTabsfrom'@theme/Tabs';
6
+
importTabItemfrom'@theme/TabItem';
7
+
8
+
5
9
# 👐 Initial Setup and Access for Atlas CLI
6
10
7
-
**Run this section in your notebook**
11
+
This section will cover the required notebook operations that must be fulfilled to run the challenges.
8
12
9
-
:::info
10
-
You can clone our template or use it in one of the online environments: https://github.com/mongodb-developer/security-lab-notebooks/blob/main/template_notebook.ipynb
13
+
## Open the template notebook
11
14
12
15
:::tip
13
-
**Important! Each code that needs to be edited is marked with `<CODE_BLOCK>`.**
16
+
We recommend using one of the online environments below to run Jupyter Notebooks.
14
17
:::
15
18
16
-
[](https://colab.research.google.com/github/mongodb-developer/security-lab-notebooks/blob/main/template_notebook.ipynb)
19
+
| Google Colab | GitHub Codespaces | Clone locally |
20
+
| :------------- | :---------- | :---------- |
21
+
|[](https://colab.research.google.com/github/mongodb-developer/security-lab-notebooks/blob/main/template_notebook.ipynb)|[](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=mongodb-developer/security-lab-notebooks)|[Template notebook](https://github.com/mongodb-developer/security-lab-notebooks/blob/main/template_notebook.ipynb)|
17
22
18
-
[](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=mongodb-developer/security-lab-notebooks)
19
23
20
-
This section will cover the required notebook operations that must be fulfilled to run the challenges.
21
24
22
-
### 1. Install Atlas CLI on the notebook environment.
25
+
## 1. Install Atlas CLI on the notebook environment.
26
+
27
+
Run the 1st cell in the notebook to install the [Atlas CLI](https://www.mongodb.com/docs/atlas/atlas-cli/), a command line interface to manage MongoDB clusters.
28
+
29
+
:::note
30
+
If you're running the notebook in a Codespace you'll be prompted to install two suggested extensions: a Python environment and Jupyter Notebooks support. Install them. When finsished, select the Python environment when prompted.
If you are a member of more than one Atlas organization, after login in you'll see a list of your organizations and you can select the one you prefer to run the lab. But if you're using a free account you only have one organization, and the list won't appear.
101
+
102
+
103
+
<TabsgroupId="orgId">
104
+
<TabItemvalue="moreThanOne"label="You have more than one organization">
105
+
83
106
Take a note of the relevant Organization ID for next steps and "STOP" the cell.
84
107
85
108
<imgsrc="../img/SuccessPhase.png" />
86
109
87
-
Take a note of the relevant Organization ID for next step.
88
110
89
-
</details>
90
-
:::
111
+
</TabItem>
112
+
113
+
<TabItemvalue="justOne"label="You have only one organization (free accounts most likely)">
114
+
115
+
You won't see any organization id in the response. Run the 2.1 Cell `Get Organization ID` and copy the `Organization ID`.
91
116
92
-
### 3. Create a new project called "MySecureProj."
117
+
```
118
+
ID NAME
119
+
31415926535 My Org's Name
120
+
```
121
+
122
+
</TabItem>
123
+
</Tabs>
124
+
125
+
## 3. Create a new project called "MySecureProj."
93
126
Replace `<ORGANIZATION_ID>` with the Organization ID from the previous step.
94
127
```
95
128
# Retain the quotes ("") when pasting the Organization ID
@@ -99,8 +132,11 @@ org_id = "<ORGANIZATION_ID>"
99
132
There should be an output which shows the Project ID of the project created. Use this Project ID for the next step.
100
133
101
134
102
-
###4. Create your challenge cluster.
135
+
## 4. Create your challenge cluster.
103
136
Replace `<PROJECT_ID>` with the Project ID from the previous step.
137
+
138
+
This will provision an M0, free forever cluster, running in AWS in region US_EAST_1. That cluster will be associated to the project we just created.
139
+
104
140
```python
105
141
# Retain the quotes ("") when pasting the Project ID
0 commit comments