Skip to content

Commit 6d5402d

Browse files
author
github-actions
committed
setup guides generated
1 parent 668ab3d commit 6d5402d

File tree

3 files changed

+72
-58
lines changed

3 files changed

+72
-58
lines changed

LINUX.md

Lines changed: 18 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -392,7 +392,7 @@ gcloud config list
392392

393393
You should get an output similar to:
394394

395-
```
395+
```bash
396396
[core]
397397
account = [email protected] # Should be your GCP email
398398
disable_usage_reporting = True
@@ -506,7 +506,9 @@ curl -L -o ~/wagon-de-bootcamp/.terraform.lock.hcl https://raw.githubusercontent
506506

507507
### Set variables
508508

509-
Open up the file `terraform.tfvars` in VS Code or any other code editor. It should look like:
509+
Open up the file `~/wagon-de-bootcamp/terraform.tfvars` in VS Code or any other code editor.
510+
511+
It should look like:
510512

511513
```bash
512514
project_id = "<YOUR_GCP_PROJECT>"
@@ -533,11 +535,15 @@ instance_name = "lw-de-vm-tswift"
533535
instance_user = "taylorswift"
534536
```
535537

536-
Make sure to save the `terraform.tfvars` file and then run:
538+
Make sure to save the `terraform.tfvars` file, nagivate into the directory with the terraform files with:
537539

538540
```
539541
cd ~/wagon-de-bootcamp
542+
```
540543

544+
And initialise and test the files with:
545+
546+
```bash
541547
terraform init
542548

543549
terraform plan
@@ -665,7 +671,7 @@ gcloud config list
665671

666672
You should get an output similar to:
667673

668-
```
674+
```bash
669675
[core]
670676
account = [email protected] # Should be your GCP email
671677
disable_usage_reporting = True
@@ -899,13 +905,6 @@ you don't want your email to appear in public repositories you may contribute to
899905
</details>
900906

901907

902-
Once you have finished installing the **dotfiles**, kill your terminal (little trash can at the top right of the terminal window) and re-open it. You might have to do it a few times until it looks similar to:
903-
904-
![](/images/vscode_after_ansible1.png)
905-
906-
The terminal should read as `zsh`.
907-
908-
909908
OR
910909

911910
<details>
@@ -958,6 +957,8 @@ you don't want your email to appear in public repositories you may contribute to
958957
</details>
959958

960959

960+
---
961+
961962
Once you have finished installing the **dotfiles**, kill your terminal (little trash can at the top right of the terminal window) and re-open it. You might have to do it a few times until it looks similar to:
962963

963964
![](/images/vscode_after_ansible1.png)
@@ -1060,7 +1061,7 @@ We've used two ansible playbooks to configure our Virtual Machine. Let's run som
10601061

10611062
#### Python
10621063

1063-
To test:
1064+
🧪 To test:
10641065

10651066
```bash
10661067
python --version
@@ -1074,7 +1075,7 @@ Python 3.12.8
10741075

10751076
#### Pyenv
10761077

1077-
To test:
1078+
🧪 To test:
10781079

10791080
```bash
10801081
pyenv versions
@@ -1091,7 +1092,7 @@ Note: There should be an `*` next to 3.12.8
10911092

10921093
#### Pipx
10931094

1094-
To test:
1095+
🧪 To test:
10951096

10961097
```bash
10971098
pipx list
@@ -1114,7 +1115,7 @@ manual pages are exposed at /home/<your_username>/.local/share/man
11141115

11151116
#### Docker
11161117

1117-
To test:
1118+
🧪 To test:
11181119

11191120
```bash
11201121
docker run hello-world
@@ -1221,7 +1222,7 @@ Should return:
12211222

12221223
#### Terraform
12231224

1224-
To test:
1225+
🧪 To test:
12251226

12261227
```bash
12271228
terraform --version
@@ -1236,7 +1237,7 @@ on linux_amd64
12361237

12371238
#### Spark
12381239

1239-
To test:
1240+
🧪 To test:
12401241

12411242
```bash
12421243
spark-shell

WINDOWS.md

Lines changed: 36 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -318,7 +318,7 @@ To install, download the Google Cloud CLI installer from this [link here 🔗](h
318318

319319
Once it's finished downloading, launch the installer and follow the prompts. You only need to install `gcloud` for the current user.
320320

321-
On the last screen of the installer there will be four check boxes. Makes sure that the box for `run gcloud init` is selected. On confirmation this should open a new **Command Prompt** window and ask a series of questions like:
321+
On the last screen of the installer there will be four check boxes. Makes sure that the boxes for `Start Google SDK Shell` and `Run gcloud init to configure the Google Cloud CLI` are selected then click **Finish**. This should open a new **Command Prompt** window and ask a series of questions like:
322322
- **Do you want to log in?** - type `y` and hit enter and following the prompts. It should open a web-browser to log in to your Google account.
323323
- **Pick cloud project to use** - Select your GCP Project ID that you want to connect with `gcloud`
324324
- **Select your region and zone** - You can safely enter `n`. It's not important to us at the moment.
@@ -374,9 +374,9 @@ To install terraform, download the **zip archive** from the Terraform install pa
374374

375375
3. Copy `terraform.exe`
376376

377-
4. Navigate to your home directory (`C:\Users\<YOUR_USERNAME>\`) and create a directory named **cli_apps**
377+
4. Navigate to your home directory (`C:\Users\<YOUR_USERNAME>\`) and create a directory named `cli_apps`
378378

379-
5. Paste `terraform.exe` in the **cli_apps** directory
379+
5. Paste `terraform.exe` in the `cli_apps` directory
380380

381381
### Add terraform to PATH
382382

@@ -442,21 +442,26 @@ First we'll create a folder and download the terraform files with:
442442

443443
Using the Command Prompt (cmd), run the following:
444444

445-
TODO: Requires testing
446-
447445
```cmd
448446
mkdir %USERPROFILE%\wagon-de-bootcamp
447+
449448
curl -L -o "%USERPROFILE%\wagon-de-bootcamp\main.tf" https://raw.githubusercontent.com/lewagon/data-engineering-setup/lorcanrae/automated-setup/automation/infra/main.tf
449+
450450
curl -L -o "%USERPROFILE%\wagon-de-bootcamp\provider.tf" https://raw.githubusercontent.com/lewagon/data-engineering-setup/lorcanrae/automated-setup/automation/infra/provider.tf
451+
451452
curl -L -o "%USERPROFILE%\wagon-de-bootcamp\variables.tf" https://raw.githubusercontent.com/lewagon/data-engineering-setup/lorcanrae/automated-setup/automation/infra/variables.tf
453+
452454
curl -L -o "%USERPROFILE%\wagon-de-bootcamp\terraform.tfvars" https://raw.githubusercontent.com/lewagon/data-engineering-setup/lorcanrae/automated-setup/automation/infra/terraform.tfvars
455+
453456
curl -L -o "%USERPROFILE%\wagon-de-bootcamp\.terraform.lock.hcl" https://raw.githubusercontent.com/lewagon/data-engineering-setup/lorcanrae/automated-setup/automation/infra/.terraform.lock.hcl
454457
```
455458

456459

457460
### Set variables
458461

459-
Open up the file `terraform.tfvars` in VS Code or any other code editor. It should look like:
462+
Open up the file `C:\Users\<YOUR_USERNAME>\wagon-de-bootcamp\terraform.tfvars` in VS Code or any other code editor.
463+
464+
It should look like:
460465

461466
```bash
462467
project_id = "<YOUR_GCP_PROJECT>"
@@ -471,7 +476,7 @@ We'll need to change some values in this file. Here's were you can find the requ
471476
- **region:** take a look at the GCP Region and Zone documentation at this [link here](https://cloud.google.com/compute/docs/regions-zones). We strongly recommend you choose the closest geographical region.
472477
- **zone:** Zone is a subset of region. it is almost always the same as **region** appended with `-a`, `-b`, or `-c`.
473478
- **instance_name:** we recommend naming your VM: `lw-de-vm-<YOUR_GITHUB_USERNAME>`. Replacing `<YOUR_GITHUB_USERNAME>` with your GitHub username.
474-
- **instance_user:** in the command prompt, run `echo %username%`
479+
- **instance_user:** in Command Prompt, run `echo %username%`
475480

476481
After completing this file, it should look similar to:
477482

@@ -483,11 +488,15 @@ instance_name = "lw-de-vm-tswift"
483488
instance_user = "taylorswift"
484489
```
485490

486-
Make sure to save the `terraform.tfvars` file and then run:
491+
Make sure to save the `terraform.tfvars` file, nagivate into the directory with the terraform files with:
487492

488493
```
489494
cd %USERPROFILE%\wagon-de-bootcamp
495+
```
496+
497+
And initialise and test the files with:
490498

499+
```bash
491500
terraform init
492501

493502
terraform plan
@@ -549,17 +558,25 @@ Windows has strict permissions for SSH files by default, we need to alter some p
549558
In Command Prompt run:
550559

551560
```cmd
552-
icacls %USERPROFILE%\.ssh\config /inheritence:r
561+
icacls %USERPROFILE%\.ssh\config /inheritance:r
562+
553563
icacls %USERPROFILE%\.ssh\config /grant:r %USERNAME%:(R)
564+
554565
icacls %USERPROFILE%\.ssh\config /grant:r SYSTEM:(R)
566+
567+
icacls %USERPROFILE%\.ssh\config
555568
```
556569

557570
And:
558571

559572
```cmd
560-
icacls %USERPROFILE%\.ssh\google_compute_engine /inheritence:r
573+
icacls %USERPROFILE%\.ssh\google_compute_engine /inheritance:r
574+
561575
icacls %USERPROFILE%\.ssh\google_compute_engine /grant:r %USERNAME%:(R)
576+
562577
icacls %USERPROFILE%\.ssh\google_compute_engine /grant:r SYSTEM:(R)
578+
579+
icacls %USERPROFILE%\.ssh\google_compute_engine
563580
```
564581

565582
### Connect with VS Code
@@ -634,7 +651,7 @@ gcloud config list
634651

635652
You should get an output similar to:
636653

637-
```
654+
```bash
638655
[core]
639656
account = [email protected] # Should be your GCP email
640657
disable_usage_reporting = True
@@ -868,13 +885,6 @@ you don't want your email to appear in public repositories you may contribute to
868885
</details>
869886

870887

871-
Once you have finished installing the **dotfiles**, kill your terminal (little trash can at the top right of the terminal window) and re-open it. You might have to do it a few times until it looks similar to:
872-
873-
![](/images/vscode_after_ansible1.png)
874-
875-
The terminal should read as `zsh`.
876-
877-
878888
OR
879889

880890
<details>
@@ -927,6 +937,8 @@ you don't want your email to appear in public repositories you may contribute to
927937
</details>
928938

929939

940+
---
941+
930942
Once you have finished installing the **dotfiles**, kill your terminal (little trash can at the top right of the terminal window) and re-open it. You might have to do it a few times until it looks similar to:
931943

932944
![](/images/vscode_after_ansible1.png)
@@ -1029,7 +1041,7 @@ We've used two ansible playbooks to configure our Virtual Machine. Let's run som
10291041

10301042
#### Python
10311043

1032-
To test:
1044+
🧪 To test:
10331045

10341046
```bash
10351047
python --version
@@ -1043,7 +1055,7 @@ Python 3.12.8
10431055

10441056
#### Pyenv
10451057

1046-
To test:
1058+
🧪 To test:
10471059

10481060
```bash
10491061
pyenv versions
@@ -1060,7 +1072,7 @@ Note: There should be an `*` next to 3.12.8
10601072

10611073
#### Pipx
10621074

1063-
To test:
1075+
🧪 To test:
10641076

10651077
```bash
10661078
pipx list
@@ -1083,7 +1095,7 @@ manual pages are exposed at /home/<your_username>/.local/share/man
10831095

10841096
#### Docker
10851097

1086-
To test:
1098+
🧪 To test:
10871099

10881100
```bash
10891101
docker run hello-world
@@ -1190,7 +1202,7 @@ Should return:
11901202

11911203
#### Terraform
11921204

1193-
To test:
1205+
🧪 To test:
11941206

11951207
```bash
11961208
terraform --version
@@ -1205,7 +1217,7 @@ on linux_amd64
12051217

12061218
#### Spark
12071219

1208-
To test:
1220+
🧪 To test:
12091221

12101222
```bash
12111223
spark-shell

0 commit comments

Comments
 (0)