Before getting hands on with CX as code, there are resources and prerequisites we will need to take care of first. Below you will find the resources available, varying depending on the OS you are currently utilizing.
You may download VS Code directly –> here
To Start we will need to create a Github Account. If you already have a github account and SSH key generated, you may skip this step. If you do not have a Github Account, please follow the following steps:
Creating an account To sign up for an account on GitHub.com, navigate to Github.com and follow the prompts.
Install Git on Windows:
Note: git-scm is a popular and recommended resource for downloading Git for Windows. The advantage of downloading Git from git-scm is that your download automatically starts with the latest version of Git included with the recommended command prompt, Git Bash . The download source is the same Git for Windows installer as referenced in the steps above.
Documentation on this set can be found here
There are two primary methods of cloning from Github, SSH and HTTPS which each require configuration
Connecting over SSH:
And
Connecting over HTTPS:
To get Started with Terraform, we will follow the link below to downloading it to your machine
For windows, you can follow the terraform download instrictions found on the terraform site here
Note that this download process can take a while, allow anywhere from 10-30 minutes for this download to take place
You may download VS Code directly –> here
You will need to install the terraform extension within VS Code by navigating to extensions on the left pane, searching “HashiCorp Terraform” and installing the extension displayed below.
Creating an account To sign up for an account on GitHub.com, navigate to Github.com and follow the prompts.
Most versions of MacOS will already have Git installed, and you can activate it through the terminal with git version. However, if you don’t have Git installed for whatever reason, you can install the latest version of Git using one of several popular methods as listed below:
Install Git from Homebrew: Homebrew is a popular package manager for macOS. If you already have Homwbrew installed, you can follow the below steps to install Git:
For mac, you will need to move through the following steps
Open up a terminal window and install Git using the following command:
brew install git
Once the command output has completed, you can verify the installation by typing:
git version.
Documentation on this set can be found here
There are two primary methods of cloning from Github, SSH and HTTPS which each require configuration
Connecting over SSH:
And
Connecting over HTTPS:
For mac, you will need to move through the following steps
brew tap hashicorp/tap
brew install hashicorp/tap/terraform