From 15f0e942badd0bed34f86eace3a0536c5c4e229a Mon Sep 17 00:00:00 2001 From: Syed Quadri Date: Fri, 14 Jun 2024 10:20:57 -0500 Subject: [PATCH] changes --- .../01-setup-our-environment/assignment.md | 1 - .../02-hello-terraform/assignment.md | 1 - .../03-gcp-credentials/assignment.md | 1 - .../04-terraform-code/assignment.md | 1 - .../05-terraform-init-provider/assignment.md | 1 - .../06-provider-quiz/assignment.md | 1 - .../07-terraform-validate/assignment.md | 1 - .../08-terraform-plan/assignment.md | 1 - .../09-terraform-variables/assignment.md | 1 - .../10-terraform-add-a-variable/assignment.md | 1 - .../11-variables-quiz/assignment.md | 1 - .../12-tf-graph/assignment.md | 1 - .../13-tf-apply/assignment.md | 1 - .../14-tf-plan-again/assignment.md | 1 - .../15-change-prefix/assignment.md | 1 - .../16-add-virtual-network/assignment.md | 1 - .../17-complete-the-build/assignment.md | 1 - .../18-tf-graph-again/assignment.md | 1 - .../19-terraform-apply-quiz/assignment.md | 1 - .../20-use-a-provisioner/assignment.md | 1 - .../21-add-an-output/assignment.md | 1 - .../22-fun-with-variables/assignment.md | 1 - .../23-terraform-variables-quiz/assignment.md | 1 - .../24-hcp-terraform-setup/assignment.md | 1 - .../25-configure-remote-state/assignment.md | 1 - .../26-terraform-destroy/assignment.md | 1 - .../terraform-graph/check-workstation | 13 ------------ .../terraform-graph/setup-workstation | 7 ------- .../terraform-graph/solve-workstation | 11 ---------- .../tf-plan-and-apply/check-workstation | 21 ------------------- .../tf-plan-and-apply/setup-workstation | 7 ------- .../tf-plan-and-apply/solve-workstation | 11 ---------- 32 files changed, 96 deletions(-) delete mode 100644 instruqt-tracks/terraform-intro-gcp/terraform-graph/check-workstation delete mode 100644 instruqt-tracks/terraform-intro-gcp/terraform-graph/setup-workstation delete mode 100644 instruqt-tracks/terraform-intro-gcp/terraform-graph/solve-workstation delete mode 100644 instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/check-workstation delete mode 100644 instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/setup-workstation delete mode 100644 instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/solve-workstation diff --git a/instruqt-tracks/terraform-intro-gcp/01-setup-our-environment/assignment.md b/instruqt-tracks/terraform-intro-gcp/01-setup-our-environment/assignment.md index 458f73f6..8a998da6 100755 --- a/instruqt-tracks/terraform-intro-gcp/01-setup-our-environment/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/01-setup-our-environment/assignment.md @@ -1,6 +1,5 @@ --- slug: setup-our-environment -id: lgixeqrwyhou type: challenge title: "\U0001F3E1 Moving in - Explore Your Workspace" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/02-hello-terraform/assignment.md b/instruqt-tracks/terraform-intro-gcp/02-hello-terraform/assignment.md index 20c4aa45..a7f92915 100755 --- a/instruqt-tracks/terraform-intro-gcp/02-hello-terraform/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/02-hello-terraform/assignment.md @@ -1,6 +1,5 @@ --- slug: hello-terraform -id: vkstvwcmd0g8 type: challenge title: "\U0001F44B Getting to Know Terraform" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/03-gcp-credentials/assignment.md b/instruqt-tracks/terraform-intro-gcp/03-gcp-credentials/assignment.md index fd8706c1..faf1dc68 100755 --- a/instruqt-tracks/terraform-intro-gcp/03-gcp-credentials/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/03-gcp-credentials/assignment.md @@ -1,6 +1,5 @@ --- slug: gcp-credentials -id: hztyb5p4qfdz type: challenge title: "\U0001F510 Connecting Terraform to GCP" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/04-terraform-code/assignment.md b/instruqt-tracks/terraform-intro-gcp/04-terraform-code/assignment.md index 5cdc0bca..7b8ba517 100755 --- a/instruqt-tracks/terraform-intro-gcp/04-terraform-code/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/04-terraform-code/assignment.md @@ -1,6 +1,5 @@ --- slug: terraform-code -id: tpglkqtsjynb type: challenge title: "\U0001F468‍\U0001F4BB What does Terraform code look like?" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/05-terraform-init-provider/assignment.md b/instruqt-tracks/terraform-intro-gcp/05-terraform-init-provider/assignment.md index 8c05b746..73b6bac7 100755 --- a/instruqt-tracks/terraform-intro-gcp/05-terraform-init-provider/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/05-terraform-init-provider/assignment.md @@ -1,6 +1,5 @@ --- slug: terraform-init-provider -id: 1tmqjwbq0gzb type: challenge title: "\U0001F3E1 Terraform Init - Install the Providers" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/06-provider-quiz/assignment.md b/instruqt-tracks/terraform-intro-gcp/06-provider-quiz/assignment.md index f3b96a29..d09838cc 100755 --- a/instruqt-tracks/terraform-intro-gcp/06-provider-quiz/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/06-provider-quiz/assignment.md @@ -1,6 +1,5 @@ --- slug: provider-quiz -id: vbzfisfntndh type: quiz title: "\U0001F4DD Quiz 1 - Providers and Modules" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/07-terraform-validate/assignment.md b/instruqt-tracks/terraform-intro-gcp/07-terraform-validate/assignment.md index 9ef95a16..f7cfbc45 100755 --- a/instruqt-tracks/terraform-intro-gcp/07-terraform-validate/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/07-terraform-validate/assignment.md @@ -1,6 +1,5 @@ --- slug: terraform-validate -id: wpomfkdruvrh type: challenge title: "\U0001F469‍⚖️ Terraform Validate - Test Your Code" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/08-terraform-plan/assignment.md b/instruqt-tracks/terraform-intro-gcp/08-terraform-plan/assignment.md index 7a6803a4..a225c723 100755 --- a/instruqt-tracks/terraform-intro-gcp/08-terraform-plan/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/08-terraform-plan/assignment.md @@ -1,6 +1,5 @@ --- slug: terraform-plan -id: gzvxbsat7fvn type: challenge title: "\U0001F914 Terraform Plan - Dry Run Mode" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/09-terraform-variables/assignment.md b/instruqt-tracks/terraform-intro-gcp/09-terraform-variables/assignment.md index 7dae9df8..3110e655 100755 --- a/instruqt-tracks/terraform-intro-gcp/09-terraform-variables/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/09-terraform-variables/assignment.md @@ -1,6 +1,5 @@ --- slug: terraform-variables -id: kuax8jmre5nc type: challenge title: "\U0001F39B️ Working with Terraform Variables" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/10-terraform-add-a-variable/assignment.md b/instruqt-tracks/terraform-intro-gcp/10-terraform-add-a-variable/assignment.md index 8f5b8ee5..6e4d006e 100755 --- a/instruqt-tracks/terraform-intro-gcp/10-terraform-add-a-variable/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/10-terraform-add-a-variable/assignment.md @@ -1,6 +1,5 @@ --- slug: terraform-add-a-variable -id: kxgqco4wtufz type: challenge title: "\U0001F5FC Change Your Location" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/11-variables-quiz/assignment.md b/instruqt-tracks/terraform-intro-gcp/11-variables-quiz/assignment.md index 3ecdad29..29744f2f 100755 --- a/instruqt-tracks/terraform-intro-gcp/11-variables-quiz/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/11-variables-quiz/assignment.md @@ -1,6 +1,5 @@ --- slug: variables-quiz -id: kzf8rq7yelxr type: quiz title: "\U0001F4DD Quiz 2 - Variables" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/12-tf-graph/assignment.md b/instruqt-tracks/terraform-intro-gcp/12-tf-graph/assignment.md index 149f1633..6d10b3e4 100755 --- a/instruqt-tracks/terraform-intro-gcp/12-tf-graph/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/12-tf-graph/assignment.md @@ -1,6 +1,5 @@ --- slug: tf-graph -id: qyfat6fbn9oy type: challenge title: "\U0001F4C8 Terraform Graph" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/13-tf-apply/assignment.md b/instruqt-tracks/terraform-intro-gcp/13-tf-apply/assignment.md index 4e5bfa55..54e67e0d 100755 --- a/instruqt-tracks/terraform-intro-gcp/13-tf-apply/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/13-tf-apply/assignment.md @@ -1,6 +1,5 @@ --- slug: tf-apply -id: yimyuso20nfh type: challenge title: "\U0001F468‍\U0001F4BB Terraform Plan and Apply" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/14-tf-plan-again/assignment.md b/instruqt-tracks/terraform-intro-gcp/14-tf-plan-again/assignment.md index 45344c52..13105548 100755 --- a/instruqt-tracks/terraform-intro-gcp/14-tf-plan-again/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/14-tf-plan-again/assignment.md @@ -1,6 +1,5 @@ --- slug: tf-plan-again -id: sluciwzl49xm type: challenge title: "\U0001F469‍\U0001F4BB Test and Repair" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/15-change-prefix/assignment.md b/instruqt-tracks/terraform-intro-gcp/15-change-prefix/assignment.md index 05036748..ea1e127e 100755 --- a/instruqt-tracks/terraform-intro-gcp/15-change-prefix/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/15-change-prefix/assignment.md @@ -1,6 +1,5 @@ --- slug: change-prefix -id: yjsglftylvrr type: challenge title: "\U0001F6EB Change Your Prefix" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/16-add-virtual-network/assignment.md b/instruqt-tracks/terraform-intro-gcp/16-add-virtual-network/assignment.md index 7de6a03e..e87b7a87 100755 --- a/instruqt-tracks/terraform-intro-gcp/16-add-virtual-network/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/16-add-virtual-network/assignment.md @@ -1,6 +1,5 @@ --- slug: add-virtual-network -id: 3hezzcpy2grz type: challenge title: "\U0001F5A7 Add a Virtual Network" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/17-complete-the-build/assignment.md b/instruqt-tracks/terraform-intro-gcp/17-complete-the-build/assignment.md index abd3f1d0..9982430b 100755 --- a/instruqt-tracks/terraform-intro-gcp/17-complete-the-build/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/17-complete-the-build/assignment.md @@ -1,6 +1,5 @@ --- slug: complete-the-build -id: uakhtx5pzoum type: challenge title: "\U0001F3D7️ Complete the Build" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/18-tf-graph-again/assignment.md b/instruqt-tracks/terraform-intro-gcp/18-tf-graph-again/assignment.md index 8e581cac..f2ec5d52 100755 --- a/instruqt-tracks/terraform-intro-gcp/18-tf-graph-again/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/18-tf-graph-again/assignment.md @@ -1,6 +1,5 @@ --- slug: tf-graph-again -id: v2zbg7zfapfo type: challenge title: "\U0001F4C8 Terraform Graph" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/19-terraform-apply-quiz/assignment.md b/instruqt-tracks/terraform-intro-gcp/19-terraform-apply-quiz/assignment.md index b091748f..df630305 100755 --- a/instruqt-tracks/terraform-intro-gcp/19-terraform-apply-quiz/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/19-terraform-apply-quiz/assignment.md @@ -1,6 +1,5 @@ --- slug: terraform-apply-quiz -id: x5nbcusy5g6g type: quiz title: "\U0001F4DD Quiz 3 - Terraform Apply" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/20-use-a-provisioner/assignment.md b/instruqt-tracks/terraform-intro-gcp/20-use-a-provisioner/assignment.md index 8e12ffcc..eba1cf9e 100755 --- a/instruqt-tracks/terraform-intro-gcp/20-use-a-provisioner/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/20-use-a-provisioner/assignment.md @@ -1,6 +1,5 @@ --- slug: use-a-provisioner -id: 75ne46lncukj type: challenge title: "\U0001F6E0️ Use a Provisioner" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/21-add-an-output/assignment.md b/instruqt-tracks/terraform-intro-gcp/21-add-an-output/assignment.md index 15af4d9a..e52b2b3b 100755 --- a/instruqt-tracks/terraform-intro-gcp/21-add-an-output/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/21-add-an-output/assignment.md @@ -1,6 +1,5 @@ --- slug: add-an-output -id: ci9mcysfqxga type: challenge title: "\U0001F5A8️ Add an Output" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/22-fun-with-variables/assignment.md b/instruqt-tracks/terraform-intro-gcp/22-fun-with-variables/assignment.md index 91ed2282..8cead05c 100755 --- a/instruqt-tracks/terraform-intro-gcp/22-fun-with-variables/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/22-fun-with-variables/assignment.md @@ -1,6 +1,5 @@ --- slug: fun-with-variables -id: eohaq0hbcfbw type: challenge title: "\U0001F436 Fun With Variables" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/23-terraform-variables-quiz/assignment.md b/instruqt-tracks/terraform-intro-gcp/23-terraform-variables-quiz/assignment.md index d6bd56dd..f4af28a9 100755 --- a/instruqt-tracks/terraform-intro-gcp/23-terraform-variables-quiz/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/23-terraform-variables-quiz/assignment.md @@ -1,6 +1,5 @@ --- slug: terraform-variables-quiz -id: 7gyk9wzbzado type: quiz title: "\U0001F4DD Quiz 4 - Terraform Variables" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/24-hcp-terraform-setup/assignment.md b/instruqt-tracks/terraform-intro-gcp/24-hcp-terraform-setup/assignment.md index b9933114..ae8e8980 100755 --- a/instruqt-tracks/terraform-intro-gcp/24-hcp-terraform-setup/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/24-hcp-terraform-setup/assignment.md @@ -1,6 +1,5 @@ --- slug: hcp-terraform-setup -id: usdxwvxm4qbo type: challenge title: ☁️ HCP Terraform Setup teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/25-configure-remote-state/assignment.md b/instruqt-tracks/terraform-intro-gcp/25-configure-remote-state/assignment.md index 7ab63286..1046ef1c 100755 --- a/instruqt-tracks/terraform-intro-gcp/25-configure-remote-state/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/25-configure-remote-state/assignment.md @@ -1,6 +1,5 @@ --- slug: configure-remote-state -id: lupzdaszexnz type: challenge title: "\U0001F39B️ Configure Remote State" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/26-terraform-destroy/assignment.md b/instruqt-tracks/terraform-intro-gcp/26-terraform-destroy/assignment.md index 85f56e6a..e892db83 100755 --- a/instruqt-tracks/terraform-intro-gcp/26-terraform-destroy/assignment.md +++ b/instruqt-tracks/terraform-intro-gcp/26-terraform-destroy/assignment.md @@ -1,6 +1,5 @@ --- slug: terraform-destroy -id: qyylxg2s3kps type: challenge title: "\U0001F525 Terraform Destroy" teaser: | diff --git a/instruqt-tracks/terraform-intro-gcp/terraform-graph/check-workstation b/instruqt-tracks/terraform-intro-gcp/terraform-graph/check-workstation deleted file mode 100644 index f79cd943..00000000 --- a/instruqt-tracks/terraform-intro-gcp/terraform-graph/check-workstation +++ /dev/null @@ -1,13 +0,0 @@ -#!/bin/bash -l -set -e - -# Create /tmp/skip-check to disable this check -if [ -f /tmp/skip-check ]; then - rm /tmp/skip-check - exit 0 -fi - -# Fix this after getting the solve script working. -curl -I http://localhost:5000 | grep -q "HTTP/1.0 200 OK" || fail-message "Oops, it looks like the Blast Radius tool is not running." - -exit 0 diff --git a/instruqt-tracks/terraform-intro-gcp/terraform-graph/setup-workstation b/instruqt-tracks/terraform-intro-gcp/terraform-graph/setup-workstation deleted file mode 100644 index 02f074a8..00000000 --- a/instruqt-tracks/terraform-intro-gcp/terraform-graph/setup-workstation +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -l - -set -e - -set-workdir /root/hashicat-gcp - -exit 0 diff --git a/instruqt-tracks/terraform-intro-gcp/terraform-graph/solve-workstation b/instruqt-tracks/terraform-intro-gcp/terraform-graph/solve-workstation deleted file mode 100644 index 600d7db0..00000000 --- a/instruqt-tracks/terraform-intro-gcp/terraform-graph/solve-workstation +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -l - -# Enable bash history -HISTFILE=/root/.bash_history -set -o history - -cd /root/hashicat-gcp - -blast-radius --serve . > blastradius.log 2>&1 & - -exit 0 diff --git a/instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/check-workstation b/instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/check-workstation deleted file mode 100644 index 586954bd..00000000 --- a/instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/check-workstation +++ /dev/null @@ -1,21 +0,0 @@ -#!/bin/bash -l -set -e - -# Create /tmp/skip-check to disable this check -if [ -f /tmp/skip-check ]; then - rm /tmp/skip-check - exit 0 -fi - -cd /root/hashicat-gcp -if [ ! -f terraform.tfstate ]; then - fail-message "Oops, it looks like you haven't run terraform apply yet." -fi - -MYVPC=$(cat terraform.tfstate | jq -r '.resources | .[].name') - -if [ $MYVPC != "hashicat" ]; then - fail-message "It looks like your network has not been built yet. Please try again." -fi - -exit 0 diff --git a/instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/setup-workstation b/instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/setup-workstation deleted file mode 100644 index 02f074a8..00000000 --- a/instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/setup-workstation +++ /dev/null @@ -1,7 +0,0 @@ -#!/bin/bash -l - -set -e - -set-workdir /root/hashicat-gcp - -exit 0 diff --git a/instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/solve-workstation b/instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/solve-workstation deleted file mode 100644 index bc60179f..00000000 --- a/instruqt-tracks/terraform-intro-gcp/tf-plan-and-apply/solve-workstation +++ /dev/null @@ -1,11 +0,0 @@ -#!/bin/bash -l - -#Enable bash history -HISTFILE=~/.bash_history -set -o history - -cd /root/hashicat-gcp - -terraform apply -auto-approve - -exit 0