DEV Community

Teniola
Teniola

Posted on

Step-by-Step Guide to Setting Up Terraform, AWS CLI, and VS Code

My name is Tennie, and I began my DevOps journey a few months ago. I am passionate about continuous learning, and I recently joined the Terraform 30-Day Challenge to deepen my understanding and sharpen my skills in infrastructure automation. My goal for this challenge is to become proficient in Terraform, master its concepts and applications, and ultimately achieve certification. For the next 30 days, I will be updating my progress as I take on this exciting learning journey!

Day 2

In this article i will be explaining detailed guide on how to set up Terraform, AWS CLI, and VS Code

Download Terraform

The official Terraform download page: https://www.terraform.io/downloads.

Select the version compatible with your operating system (Windows, macOS, Linux).

  1. Install Terraform

Windows:
Extract the downloaded .zip file.
Move the terraform.exe file to a directory included in your system's PATH, such as C:\Windows\System32.

Verify the installation:


terraform --version
Enter fullscreen mode Exit fullscreen mode

Install AWS CLI

  1. Download AWS CLI

Visit the official AWS CLI download page: https://aws.amazon.com/cli/.

2.1 Install AWS CLI

Windows:
Run the installer and follow the prompts.
Verify the installation:

aws --version
Enter fullscreen mode Exit fullscreen mode

Configure AWS CLI
Run the following command to configure the AWS CLI:


aws configure
Enter fullscreen mode Exit fullscreen mode

Provide:

Access Key ID
Secret Access Key
Default region (e.g., us-east-1)
Output format (e.g., json)

Install Visual Studio Code (VS Code)
3.1 Download and Install VS Code
Download VS Code from: https://code.visualstudio.com/.
Install it by following the prompts for your OS.

3.2 Install Extensions

Open VS Code.

Go to the Extensions Marketplace (Ctrl+Shift+X or Cmd+Shift+X).
Search for and install the following extensions:

Top comments (0)