From 35714f8aa15800063cd6ff1a630aabda7318b284 Mon Sep 17 00:00:00 2001 From: Syed Quadri Date: Thu, 10 Oct 2024 16:03:05 -0500 Subject: [PATCH] delete repo files --- instruqt-tracks/terraform-module-lab/Makefile | 1 - .../terraform-module-lab/config.yml | 14 -- .../setup-our-environment/check-workstation | 12 - .../setup-our-environment/setup-workstation | 129 ----------- .../setup-our-environment/solve-workstation | 2 - .../terraform-module-lab/track.yml | 218 ------------------ .../terraform-workshop-base/Makefile | 1 - .../terraform-workshop-base/config.yml | 19 -- .../setup-our-environment/check-workstation | 12 - .../setup-our-environment/setup-workstation | 139 ----------- .../setup-our-environment/solve-workstation | 2 - .../terraform-workshop-base/track.yml | 73 ------ 12 files changed, 622 deletions(-) delete mode 120000 instruqt-tracks/terraform-module-lab/Makefile delete mode 100644 instruqt-tracks/terraform-module-lab/config.yml delete mode 100644 instruqt-tracks/terraform-module-lab/setup-our-environment/check-workstation delete mode 100644 instruqt-tracks/terraform-module-lab/setup-our-environment/setup-workstation delete mode 100644 instruqt-tracks/terraform-module-lab/setup-our-environment/solve-workstation delete mode 100644 instruqt-tracks/terraform-module-lab/track.yml delete mode 120000 instruqt-tracks/terraform-workshop-base/Makefile delete mode 100644 instruqt-tracks/terraform-workshop-base/config.yml delete mode 100644 instruqt-tracks/terraform-workshop-base/setup-our-environment/check-workstation delete mode 100644 instruqt-tracks/terraform-workshop-base/setup-our-environment/setup-workstation delete mode 100644 instruqt-tracks/terraform-workshop-base/setup-our-environment/solve-workstation delete mode 100644 instruqt-tracks/terraform-workshop-base/track.yml diff --git a/instruqt-tracks/terraform-module-lab/Makefile b/instruqt-tracks/terraform-module-lab/Makefile deleted file mode 120000 index b0700363..00000000 --- a/instruqt-tracks/terraform-module-lab/Makefile +++ /dev/null @@ -1 +0,0 @@ -../../common/Makefile \ No newline at end of file diff --git a/instruqt-tracks/terraform-module-lab/config.yml b/instruqt-tracks/terraform-module-lab/config.yml deleted file mode 100644 index d5038d1c..00000000 --- a/instruqt-tracks/terraform-module-lab/config.yml +++ /dev/null @@ -1,14 +0,0 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MPL-2.0 - -version: "2" -virtualmachines: -- name: workstation - image: instruqt-hashicorp/tfc-workstation-1-1-4 - shell: /bin/bash -l - machine_type: n1-standard-1 -aws_accounts: -- name: TF-WORKSHOP - managed_policies: - - arn:aws:iam::aws:policy/AmazonEC2FullAccess - - arn:aws:iam::aws:policy/AmazonVPCFullAccess diff --git a/instruqt-tracks/terraform-module-lab/setup-our-environment/check-workstation b/instruqt-tracks/terraform-module-lab/setup-our-environment/check-workstation deleted file mode 100644 index 55eff35d..00000000 --- a/instruqt-tracks/terraform-module-lab/setup-our-environment/check-workstation +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -set -e - -# Create /tmp/skip-check to disable this check -if [ -f /tmp/skip-check ]; then - rm /tmp/skip-check - exit 0 -fi - -[[ -f /usr/bin/fastforward ]] || fail-message "Uh oh, you're missing the fastforward script. Please restart your track." - -exit 0 diff --git a/instruqt-tracks/terraform-module-lab/setup-our-environment/setup-workstation b/instruqt-tracks/terraform-module-lab/setup-our-environment/setup-workstation deleted file mode 100644 index 742e6ffd..00000000 --- a/instruqt-tracks/terraform-module-lab/setup-our-environment/setup-workstation +++ /dev/null @@ -1,129 +0,0 @@ -#!/bin/bash -l -# This is the setup script for the workstation container. Use it to set the stage for your terraform training, demo, or lab. -set -e - -# Wait for Instruqt to finish booting the VM -# This is better than doing sleep -while [ ! -f /opt/instruqt/bootstrap/host-bootstrap-completed ] -do - echo "Waiting for Instruqt to finish booting the VM" - sleep 1 -done - -# Set Terraform Version -TERRAFORM_VERSION="1.1.4" - -# Install desired version of Terraform -wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -mv terraform /usr/local/bin/terraform -chmod +x /usr/local/bin/terraform -rm -f terraform_${TERRAFORM_VERSION}_linux_amd64.zip - -# Install cowsay -sudo apt-get update -y -sudo apt-get install -y cowsay -cp /usr/games/cowsay /usr/local/bin/cowsay - -# Set the user's working directory with the set-workdir script, then in subsequent challenges the user will always start in that directory. -mkdir /root/workspace -set-workdir /root/workspace - -# Create a catch-up script that enables the user to fast-forward -cat <<-EOF > /usr/bin/fastforward -#!/bin/bash -echo "******************************************************************" -echo "* Skip to Challenge Configuration Script" -echo "******************************************************************" -echo -echo "This script will set up your HCP Terraform token and organization" -echo "configuration. Once that is done you may use the 'skip to challenge'" -echo "feature of Instruqt to fast-forward to a particular point in the" -echo "training." -echo -echo "Please enter your HCP Terraform organization name." -read ORG -echo -echo "Please enter your workspace name." -read WORKSPACE -echo -echo "Please enter your HCP Terraform user token." -read TOKEN -echo -eecho "Please enter your GitHub user ID." -read GITUSERID -echo -echo "Please enter your GitHub personal access token." -read GITPAT -echo -echo "Please enter your GitHub user name ( )." -read GITUSERNAME -echo -echo "Please enter your GitHub email." -read GITEMAIL -echo -echo "Please enter your oauth-id. You can find it at this URL:" -echo "https://app.terraform.io/app/\${ORG}/settings/version-control" -echo "If you haven't set up VCS integration yet, simply hit enter." -read OAUTHID -echo -echo "Organization: \$ORG" -echo "Workspace : \$WORKSPACE" -echo "Token : \$TOKEN" -echo "GitHub User ID : \$GITUSERID" -echo "GitHub Personal Access Token : \$GITPAT" -echo "GitHub User Name : \$GITUSERNAME" -echo "GitHub Email : \$GITEMAIL" -echo "OAuth ID : \$OAUTHID" -echo -read -p "Do these look right to you? Y/n " -n 1 -r -echo -if [[ ! \$REPLY =~ ^[Yy]\$ ]] -then - echo "Please try again." - exit 1 -fi -echo -echo "Saving your settings in /root/skipconfig.json" -cat <<-EOM > /root/skipconfig.json -{ - "org": "\$ORG", - "workspace": "\$WORKSPACE", - "token": "\$TOKEN", - "gituser": "\$GITUSER", - "oauthid": "\$OAUTHID" -} -EOM - -cowsay "Ready to Skip Challenges!" - -EOF - -chmod +x /usr/bin/fastforward - -# Create a remote_backend.tf file -cat <<-EOF > /root/workspace/remote_backend.tf -terraform { - backend "remote" { - hostname = "app.terraform.io" - organization = "YOURORGANIZATION" - workspaces { - name = "YOURWORKSPACE" - } - } -} -EOF - -# Set up Terraform credentials file -mkdir -p /root/.terraform.d -cat <<-EOF > /root/.terraform.d/credentials.tfrc.json -{ - "credentials": { - "app.terraform.io": { - "token": "YOURTOKEN" - } - } -} -EOF - -exit 0 diff --git a/instruqt-tracks/terraform-module-lab/setup-our-environment/solve-workstation b/instruqt-tracks/terraform-module-lab/setup-our-environment/solve-workstation deleted file mode 100644 index 6916d479..00000000 --- a/instruqt-tracks/terraform-module-lab/setup-our-environment/solve-workstation +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -# No solve script required for this challenge. \ No newline at end of file diff --git a/instruqt-tracks/terraform-module-lab/track.yml b/instruqt-tracks/terraform-module-lab/track.yml deleted file mode 100644 index 7239a8a4..00000000 --- a/instruqt-tracks/terraform-module-lab/track.yml +++ /dev/null @@ -1,218 +0,0 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MPL-2.0 - -slug: terraform-module-lab -id: o7fzb43piufk -type: track -title: Terraform Module Lab -teaser: | - A preconfigured lab environment for learning about Terraform modules. -description: | - This track can be used for hands-on labs working with Terraform modules. -icon: https://storage.googleapis.com/instruqt-hashicorp-tracks/logo/terraform.png -tags: -- terraform -- modules -owner: hashicorp -developers: -- roger@hashicorp.com -- lance@hashicorp.com -- scarolan@hashicorp.com -private: true -published: true -challenges: -- slug: setup-our-environment - id: sw7bqqbs0pkd - type: challenge - title: "\U0001F3E1 Moving in - Set Up Your Workspace" - teaser: | - Configure your code editor with the Terraform extension and open a workspace. - notes: - - type: text - contents: | - Setting up your environment... - Keep an eye on the bottom right corner to know when you can get started. - - type: text - contents: The terraform command line tool is available for MacOS, FreeBSD, OpenBSD, - Windows, Solaris and Linux. - - type: text - contents: The terraform language is designed to be both human and machine-readable. - - type: text - contents: Most modern text editors support Terraform syntax highlighting. - assignment: |- - Open the "Code Editor" tab on the left. You'll see some terraform configuration files for the hashicat application. Open the file called "main.tf". Note that the file type at the bottom of the screen was automatically set to "hcl" to give optimized syntax highlighting and colors. - - When you edit any of these files, you will see a blue dot and a disk icon on the tab above it. **Be sure to click the disk icon to save your changes!** There is no "auto-saving" in the Instruqt editor! - - Throughout this track, please execute all commands on the "Shell" tab. - - You should see some files in the explorer bar on the left side menu. These are terraform config files for the hashicat application. - - Congratulations, you are ready to start working with Terraform. - - Click the **Check** button to continue. - tabs: - - title: Code Editor - type: code - hostname: workstation - path: /root/workspace - - title: Shell - type: terminal - hostname: workstation - difficulty: basic - timelimit: 7200 -- slug: hcp-terraform-setup - id: wor8lync260t - type: challenge - title: ☁️ HCP Terraform Setup - teaser: | - HCP Terraform offers almost all the same features as on-premise Terraform Enterprise. - notes: - - type: text - contents: HCP Terraform offers features like remote state and a private module - registry. - assignment: |- - During this challenge you'll sign up for a free HCP Terraform account. Click on the URL below and sign up for an account if you don't have one already: - - https://app.terraform.io/signup/account - - If you already have an account you can simply sign in with your existing credentials. - - Next you'll configure a token for running terraform commands from your workstation. - - Let's generate a new **user token** for use on your workstation. Visit the User Settings > Tokens page in HCP Terraform: - - https://app.terraform.io/app/settings/tokens - - Click on the **Create an API token** button. You can name the token whatever you like. Copy the entire token using your mouse or the small copy-paste icon. - - Back in the Instruqt track, you need to add your API token to a file called "credentials.tfrc.json". Select the "Credentials File" tab and open the `/root/.terraform.d/credentials.tfrc.json` file directly. - - Replace the part that says YOURTOKEN with what you copied from HCP Terraform. Be sure to save the file. - - Your token is now safely stored in the "credentials.tfrc.json" file. - - Return to your Code Editor tab and edit the "remote_backend.tf" file, replacing the `YOURORGANIZATION` placeholder with your organization name. Save the file. - tabs: - - title: Code Editor - type: code - hostname: workstation - path: /root/workspace - - title: Credentials File - type: code - hostname: workstation - path: /root/.terraform.d/credentials.tfrc.json - - title: Shell - type: terminal - hostname: workstation - difficulty: basic - timelimit: 7200 -- slug: versioned-infrastructure - id: rhwwafn4nthr - type: challenge - title: "\U0001F4BB Version Controlled Infrastructure" - teaser: | - Terraform modules can be stored in your Version Control System. - notes: - - type: text - contents: Terraform modules can be stored in your Version Control System (VCS), - and automatically imported into the Terraform Private Registry - assignment: |- - In order for different teams and individuals to be able to work on the same Terraform code, you need to use a Version Control System (VCS). HCP Terraform can integrate with the most popular VCS systems including GitHub, GitLab and Bitbucket. - - You will need a free GitHub.com account for this challenge. We recommend using a personal account for training instead your work account (if you have one). - - Follow the **Configuring GitHub Access** section of the TFC documentation to connect your GitHub account to your Terraform Organization. - - https://www.terraform.io/docs/cloud/vcs/github.html - - Once you've configured GitHub access, you can import modules into your Terraform Private Registry. - tabs: - - title: Code Editor - type: code - hostname: workstation - path: /root/hashicat-aws - - title: Shell - type: terminal - hostname: workstation - - title: Configuring Github Access - type: external - url: https://www.terraform.io/docs/cloud/vcs/github.html - - title: HCP Terraform - type: external - url: https://app.terraform.io - difficulty: basic - timelimit: 1800 -- slug: private-module-registry - id: jpljzmbguwas - type: challenge - title: "\U0001F4DA Terraform Private Registry" - teaser: | - Some of your users want a simple way to deploy databases and network configurations. Enter the Terraform Private Registry, where you can store standard, re-usable Terraform configurations that others can use in their own workspaces. - notes: - - type: text - contents: Storing your modules in a git repo allows you to do code reviews and - tag different versions. - assignment: |- - In this challenge you'll learn to use the Terraform Private Registry, which allows you to store and version re-usable snippets of Terraform code. Think of modules like custom resources for your own environment. - - Instead of writing this module from scratch you can copy the existing vpc module from the public Terraform registry. Visit this URL to view the VPC module: - - https://registry.terraform.io/modules/terraform-aws-modules/vpc/aws - - Note the **Source:** link that points at the github repository for this module. Click on the Source URL. As you did in previous workshop tracks, create your own fork of this repository with the **Fork** button. - - Back in the HCP Terraform control panel, click on the **Modules** link at the top of the page. Click on the **+Add Module** button. Click on the Github button and select the terraform-aws-vpc module that you just forked. - - Click on **Publish Module**. - - Create a new Terraform file called `main.tf` in your "workspace" directory and add a module to your module in it to create a new VPC. You'll also want to add an `aws` provider block and set its `region` attribute to `eu-west-1` to match the availability zones in the sample code. - - HINT: The docs are your friend. They might even have an example of how the code should look. But be sure to set the source of the module to the one shown for it in your Terraform Private Registry. Don't use the source from the module's README.md file. - - After you finish editing your main.tf file, you can initialize your Terraform configuration with this command: - - ``` - terraform init - ``` - - You can find your AWS keys with these commands: - ``` - echo $AWS_ACCESS_KEY_ID - echo $AWS_SECRET_ACCESS_KEY - ``` - - Add your AWS keys to your new workspace, "tfc-module-lab", as environment variables on the workspace's Variables tab. Be sure to mark your `AWS_SECRET_ACCESS_KEY` environment variable as sensitive. - - Now, do an apply against your workspace with this command: - ``` - terraform apply - ``` - - Type "yes" if you are prompted to confirm the apply. - - If all goes well you should see a new VPC being built in the streaming apply log. Wait until your terraform apply command is complete, then click the `Check` button to verify your work. - - Please destroy the VPC you created with this command: - - ``` - terraform destroy - ``` - - Type "yes" when asked to confirm the destroy plan. - - Congratulations on completing the Terraform Module Lab! - tabs: - - title: Code Editor - type: code - hostname: workstation - path: /root/workspace - - title: Shell - type: terminal - hostname: workstation - - title: HCP Terraform - type: external - url: https://app.terraform.io - difficulty: basic - timelimit: 1800 -checksum: "6927212131122536910" diff --git a/instruqt-tracks/terraform-workshop-base/Makefile b/instruqt-tracks/terraform-workshop-base/Makefile deleted file mode 120000 index b0700363..00000000 --- a/instruqt-tracks/terraform-workshop-base/Makefile +++ /dev/null @@ -1 +0,0 @@ -../../common/Makefile \ No newline at end of file diff --git a/instruqt-tracks/terraform-workshop-base/config.yml b/instruqt-tracks/terraform-workshop-base/config.yml deleted file mode 100644 index 1007c324..00000000 --- a/instruqt-tracks/terraform-workshop-base/config.yml +++ /dev/null @@ -1,19 +0,0 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MPL-2.0 - -version: "2" -virtualmachines: -- name: workstation - image: instruqt-hashicorp/tfc-workstation-1-1-4 - shell: /bin/bash -l - machine_type: n1-standard-1 -gcp_projects: -- name: gcp-project - services: - - cloudresourcemanager.googleapis.com - - compute.googleapis.com -aws_accounts: -- name: TF-WORKSHOP - managed_policies: - - arn:aws:iam::aws:policy/AmazonEC2FullAccess - - arn:aws:iam::aws:policy/AmazonVPCFullAccess diff --git a/instruqt-tracks/terraform-workshop-base/setup-our-environment/check-workstation b/instruqt-tracks/terraform-workshop-base/setup-our-environment/check-workstation deleted file mode 100644 index 55eff35d..00000000 --- a/instruqt-tracks/terraform-workshop-base/setup-our-environment/check-workstation +++ /dev/null @@ -1,12 +0,0 @@ -#!/bin/bash -set -e - -# Create /tmp/skip-check to disable this check -if [ -f /tmp/skip-check ]; then - rm /tmp/skip-check - exit 0 -fi - -[[ -f /usr/bin/fastforward ]] || fail-message "Uh oh, you're missing the fastforward script. Please restart your track." - -exit 0 diff --git a/instruqt-tracks/terraform-workshop-base/setup-our-environment/setup-workstation b/instruqt-tracks/terraform-workshop-base/setup-our-environment/setup-workstation deleted file mode 100644 index 6f1ee354..00000000 --- a/instruqt-tracks/terraform-workshop-base/setup-our-environment/setup-workstation +++ /dev/null @@ -1,139 +0,0 @@ -#!/bin/bash -l -# This is the setup script for the workstation container. Use it to set the stage for your terraform training, demo, or lab. -set -e - -# Wait for Instruqt to finish booting the VM -# This is better than doing sleep -while [ ! -f /opt/instruqt/bootstrap/host-bootstrap-completed ] -do - echo "Waiting for Instruqt to finish booting the VM" - sleep 1 -done - -# Set Terraform Version -TERRAFORM_VERSION="1.1.4" - -# Install desired version of Terraform -wget https://releases.hashicorp.com/terraform/${TERRAFORM_VERSION}/terraform_${TERRAFORM_VERSION}_linux_amd64.zip -unzip terraform_${TERRAFORM_VERSION}_linux_amd64.zip -mv terraform /usr/local/bin/terraform -chmod +x /usr/local/bin/terraform -rm -f terraform_${TERRAFORM_VERSION}_linux_amd64.zip - -# Install cowsay -sudo apt-get update -y -sudo apt-get install -y cowsay -cp /usr/games/cowsay /usr/local/bin/cowsay - -# Set the user's working directory with the set-workdir script, then in subsequent challenges the user will always start in that directory. -mkdir /root/workspace -set-workdir /root/workspace - -# You can do anything! Clone an existing repo, or write some terraform from scratch. - -# A few example repos to get you started: -# git clone https://github.com/hashicorp/hashicat-aws -# git clone https://github.com/hashicorp/hashicat-azure -# git clone https://github.com/hashicorp/hashicat-gcp - -# Set the user's working directory with the set-workdir script, then in subsequent challenges the user will always start in that directory. -# /bin/set-workdir /root/my-git-repo - -# Create a catch-up script that enables the user to fast-forward -cat <<-EOF > /usr/bin/fastforward -#!/bin/bash -echo "******************************************************************" -echo "* Skip to Challenge Configuration Script" -echo "******************************************************************" -echo -echo "This script will set up your HCP Terraform token and organization" -echo "configuration. Once that is done you may use the 'skip to challenge'" -echo "feature of Instruqt to fast-forward to a particular point in the" -echo "training." -echo -echo "Please enter your HCP Terraform organization name." -read ORG -echo -echo "Please enter your workspace name." -read WORKSPACE -echo -echo "Please enter your HCP Terraform user token." -read TOKEN -echo -eecho "Please enter your GitHub user ID." -read GITUSERID -echo -echo "Please enter your GitHub personal access token." -read GITPAT -echo -echo "Please enter your GitHub user name ( )." -read GITUSERNAME -echo -echo "Please enter your GitHub email." -read GITEMAIL -echo -echo "Please enter your oauth-id. You can find it at this URL:" -echo "https://app.terraform.io/app/\${ORG}/settings/version-control" -echo "If you haven't set up VCS integration yet, simply hit enter." -read OAUTHID -echo -echo "Organization: \$ORG" -echo "Workspace : \$WORKSPACE" -echo "Token : \$TOKEN" -echo "GitHub User ID : \$GITUSERID" -echo "GitHub Personal Access Token : \$GITPAT" -echo "GitHub User Name : \$GITUSERNAME" -echo "GitHub Email : \$GITEMAIL" -echo "OAuth ID : \$OAUTHID" -echo -read -p "Do these look right to you? Y/n " -n 1 -r -echo -if [[ ! \$REPLY =~ ^[Yy]\$ ]] -then - echo "Please try again." - exit 1 -fi -echo -echo "Saving your settings in /root/skipconfig.json" -cat <<-EOM > /root/skipconfig.json -{ - "org": "\$ORG", - "workspace": "\$WORKSPACE", - "token": "\$TOKEN", - "gituser": "\$GITUSER", - "oauthid": "\$OAUTHID" -} -EOM - -cowsay "Ready to Skip Challenges!" - -EOF - -chmod +x /usr/bin/fastforward - -# Create a remote_backend.tf file -cat <<-EOF > /root/workspace/remote_backend.tf -terraform { - backend "remote" { - hostname = "app.terraform.io" - organization = "YOURORGANIZATION" - workspaces { - name = "YOURWORKSPACE" - } - } -} -EOF - -# Set up Terraform credentials file -mkdir -p /root/.terraform.d -cat <<-EOF > /root/.terraform.d/credentials.tfrc.json -{ - "credentials": { - "app.terraform.io": { - "token": "YOURTOKEN" - } - } -} -EOF - -exit 0 diff --git a/instruqt-tracks/terraform-workshop-base/setup-our-environment/solve-workstation b/instruqt-tracks/terraform-workshop-base/setup-our-environment/solve-workstation deleted file mode 100644 index 6916d479..00000000 --- a/instruqt-tracks/terraform-workshop-base/setup-our-environment/solve-workstation +++ /dev/null @@ -1,2 +0,0 @@ -#!/bin/bash -# No solve script required for this challenge. \ No newline at end of file diff --git a/instruqt-tracks/terraform-workshop-base/track.yml b/instruqt-tracks/terraform-workshop-base/track.yml deleted file mode 100644 index cd44174d..00000000 --- a/instruqt-tracks/terraform-workshop-base/track.yml +++ /dev/null @@ -1,73 +0,0 @@ -# Copyright (c) HashiCorp, Inc. -# SPDX-License-Identifier: MPL-2.0 - -slug: terraform-workshop-base -id: hi9eo2mucqot -type: track -title: Terraform Workshop Environment -teaser: | - An instruqt track template that you can copy and use for in your own demos and workshops. -description: |- - This track can be copied and used as a starting point for Azure, GCP or AWS Terraform workshops. You can use it as-is for freestyle training, or customize it for specific use cases. - - It comes with AWS, GCP and Azure credentials pre-installed and ready to use with Terraform. To use this track, simply copy the entire terraform-workshop-base directory and strip out all of the `id:` lines from your track.yml. Rename the tracks, create some content, run an `instruqt track push` and off you go. -icon: https://storage.googleapis.com/instruqt-hashicorp-tracks/logo/terraform.png -tags: -- terraform -- azure -- aws -- gcp -- template -owner: hashicorp -developers: -- roger@hashicorp.com -- lance@hashicorp.com -- scarolan@hashicorp.com -private: true -published: true -challenges: -- slug: setup-our-environment - id: 2l7dzxr3bgya - type: challenge - title: "\U0001F3E1 Moving in - Set Up Your Workspace" - teaser: | - Configure your code editor with the Terraform extension and open a workspace. - notes: - - type: text - contents: | - Setting up your environment... - Keep an eye on the bottom right corner to know when you can get started. - - type: text - contents: The terraform command line tool is available for MacOS, FreeBSD, OpenBSD, - Windows, Solaris and Linux. - - type: text - contents: The terraform language is designed to be both human and machine-readable. - - type: text - contents: Most modern text editors support Terraform syntax highlighting. - assignment: |- - Open the "Code Editor" tab on the left. You'll see some terraform configuration files for the hashicat application. Open the file called "main.tf". Note that the file type at the bottom of the screen was automatically set to "hcl" to give optimized syntax highlighting and colors. - - When you edit any of these files, you will see a blue dot and a disk icon on the tab above it. **Be sure to click the disk icon to save your changes!** There is no "auto-saving" in the Instruqt editor! - - Throughout this track, please execute all commands on the "Shell" tab. - - You should see some files in the explorer bar on the left side menu. These are terraform config files for the hashicat application. - - Congratulations, you are ready to start working with Terraform. - - Click the **Check** button to continue. - tabs: - - title: Code Editor - type: service - hostname: workstation - port: 8443 - - title: Text Editor - type: code - hostname: workstation - path: /root - - title: Shell - type: terminal - hostname: workstation - difficulty: basic - timelimit: 28800 -checksum: "15380398127466223191"