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
+51-21Lines changed: 51 additions & 21 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,42 +1,46 @@
1
-
importTabsfrom'@theme/Tabs';
2
-
importTabItemfrom'@theme/TabItem';
3
-
4
1
---
5
2
sidebar_position: 2
6
3
---
7
4
5
+
importTabsfrom'@theme/Tabs';
6
+
importTabItemfrom'@theme/TabItem';
7
+
8
+
8
9
# 👐 Initial Setup and Access for Atlas CLI
9
10
10
-
**Run this section in your notebook**
11
+
This section will cover the required notebook operations that must be fulfilled to run the challenges.
11
12
12
-
:::info
13
-
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
14
14
15
15
:::tip
16
-
**Important! Each piece of 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.
17
17
:::
18
18
19
-
[](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)|
20
22
21
-
[](https://github.com/codespaces/new?hide_repo_select=true&ref=main&repo=mongodb-developer/security-lab-notebooks)
22
23
23
-
This section will cover the required notebook operations that must be fulfilled to run the challenges.
24
24
25
-
### 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.
26
28
27
-
Run the 1st cell in the notebook to install the Atlas CLI. If you're running the notebook in a Codespace you'll be prompted to install a Python environment and Jupyter Notebooks support. Select the Python Kernel when prompted.
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
+
89
106
Take a note of the relevant Organization ID for next steps and "STOP" the cell.
90
107
91
108
<imgsrc="../img/SuccessPhase.png" />
92
109
93
-
Take a note of the relevant Organization ID for next step.
94
110
95
-
</details>
96
-
:::
111
+
</TabItem>
112
+
113
+
<TabItemvalue="justOne"label="You have only one organization (free accounts most likely)">
97
114
98
-
### 3. Create a new project called "MySecureProj."
115
+
You won't see any organization id in the response. Run the 2.1 Cell `Get Organization ID` and copy the `Organization ID`.
116
+
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."
99
126
Replace `<ORGANIZATION_ID>` with the Organization ID from the previous step.
100
127
```
101
128
# Retain the quotes ("") when pasting the Organization ID
@@ -105,8 +132,11 @@ org_id = "<ORGANIZATION_ID>"
105
132
There should be an output which shows the Project ID of the project created. Use this Project ID for the next step.
106
133
107
134
108
-
###4. Create your challenge cluster.
135
+
## 4. Create your challenge cluster.
109
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
+
110
140
```python
111
141
# Retain the quotes ("") when pasting the Project ID
0 commit comments