How to Install Terraform in Amazon EC2 Instance

Share via:

Dear Readers,

In this article, we will see the following Install Terraform in Amazon EC2 Instance.

Steps to Follow :
  1. Logging to AWS Account
  2. Launch Linux Server
  3. Connect to Linux EC2 Instance by Using Putty
  4. Download and Install Terraform
  5. Set the path for terraform
  6. Start the terraform

 

1. Logging to AWS Account

First, we need to AWS Console page by using the below link.

https://aws.amazon.com/console/

Click on the sign in to Console button.

Logging to AWS account

Login using username & password and click on sign in.

Enter to AWS Management Console

We can see the AWS Management Console Dashboard.

Go to Services, under the compute module click EC2 service to open.

2. Launch Linux EC2 Instance

Go to Services, under the compute module click EC2 service to open.

We can launch Linux EC2 Instance by using below link.

How to Launch Linux EC2 Instance

We can see the Linux server has been launched successfully.

3. Connect to Linux EC2 Instance Using Putty

We can connect putty by using the below link.

Connect to EC2 Instance Using Putty

Go inside the Linux Server Terminal.

4. Download and Install Terraform 

First, we need to Terraform official website by using below link.

https://www.terraform.io/downloads.html

Select Linux 64-bit and copy the link address.

Go inside the Linux Server Terminal.

Download Terraform package

Verify Terraform package

we can see the terraform zip file which was downloaded.

Unzip Terraform package

We can see the terraform binary file

Install terraform

we execute the binary file for installing terraform

Verify the version of terraform

5. Set the Path for terraform

6. Start the terraform

 

Thank you for giving your valuable time to read the above information. Please click here to subscribe for further updates

KTEXPERTS is always active on below social media platforms.

Facebook : https://www.facebook.com/ktexperts/
LinkedIn : https://www.linkedin.com/company/ktexperts/
Twitter : https://twitter.com/ktexpertsadmin
YouTube : https://www.youtube.com/c/ktexperts

Share via:
Note: Please test scripts in Non Prod before trying in Production.
1 Star2 Stars3 Stars4 Stars5 Stars (3 votes, average: 2.67 out of 5)
Loading...

Add Comment