Setup your Devops Environment
Topology
Step1 Visual Studio
Download Visual Studio code
1 https://code.visualstudio.com/download
Download Extensions
WSL
Terraform
GitLens
Step2 WSL
Install WSL by opening Powershell on your windows machine as administrator and run the following command
1 wsl --install
go to the Microsoft Store on your windows machine, search for "Ubuntu," and install the latest version.
Step3 Install AWS CLI on WSL (Ubuntu)
Open the Ubuntu terminal and run
1 sudo apt update
Install AWS CLI
1 sudo apt install awscli -y
Configure AWS CLI:
1 aws configure
Enter these information which you should get from your AWS account
AWS Access Key ID
Secret Access Key
Region
Step4 Install Terraform
Install Dependencies on Ubuntu terminal
1 sudo apt-get update && sudo apt-get install -y gnupg software-properties-common curl
Add HashiCorp GPG Key:
1 curl -fsSL https://apt.releases.hashicorp.com/gpg | sudo apt-key add -
Add Terraform Repository:
1 sudo apt-add-repository "deb [arch=amd64] https://apt.releases.hashicorp.com $(lsb_release -cs) main"
Install Terraform:
1 sudo apt-get update && sudo apt-get install terraform
Verify Terraform:
1 terraform -v
Step5 Clone a GitHub repo
Open the WSL Terminal in Visual Studio Code:
Open VS Code, and press Ctrl+Shift+P.
Type Remote-WSL: New Window and select it.
Navigate to the terminal within VS Code.
Clone the Repository:
1 git clone https://github.com/username/repo.git
Navigate into the Repository:
1 cd repo