Terraform installation

Edward Viaene
A free video tutorial from Edward Viaene
DevOps, Cloud, Big Data Specialist
4.3 instructor rating • 12 courses • 166,257 students

Lecture description

An explanation of how to install terraform on Windows / MacOS / Linux

Learn more from the full course

Learn DevOps: Infrastructure Automation With Terraform

Learn how to automate your infrastructure with terraform. Covers Terraform with AWS, Packer, Docker, ECS, EKS, Jenkins

08:01:55 of on-demand video • Updated June 2020

  • Understand, use and apply terraform
  • Know when to use different features
  • Use terraform with AWS
  • Use terraform with Packer to create custom images
  • Be able to apply DevOps techniques using terraform
English In this demo, I'm going to show you how to install Terraform. It can be a little bit different on your PC, because I'm going to use my Mac, but you might be using Linux or Windows. It's roughly the same, but there might be some differences. The first step is to go to "http://terraform.io" website. And here, you can just click download, and you can download Terraform for your operating system. I have Mac, so I'll be downloading it for Mac, but you might have to download it for Linux or for Windows. It's always a zip file. Even for Windows, for Linux, or for Mac it's always going to be a zip file, which makes it pretty easy, because the only thing you will have to do is to unzip, the zip file and then you can start working with Terraform. So, it will be downloaded here in my downloads folder. This is "version 0.7.4". It's possible that when you download it, it's going to be a different version, it doesn't really matter. I'm going to open a terminal on my Mac and I'm going to create a new directory, "terraform". We are going to "cd" this directory and unzip from "../Downloads/", this "terraform_0.7.4_darwin_amd64.zip". If you are on a Windows machine, you can just unzip it somewhere on your hard drive, and at that point you can also open a terminal, which is called is called "cmd" in Windows. To make sure that I'll always be able to execute the command "terraform", I will just change the "Path" and the path is going to be my home directory which is "/Users/edwardviaene/" and then I'm going to point to this "terraform" directory. I'm also going to include "$" sign and path, to make sure that I don't lose my current path. Even now when I type "terraform" I can see the help of Terraform. So, I can see that it's installed. If you are on a Windows machine, you can use "set", and you can use "set path". This is going to be the current path and the at "c:\terraform" or you add any other directory where you unzip Terraform in. And at that point, you can also just type "terraform, and then you should be able to see this help.