Terraform installation using Vagrant
Lecture description
An alternative installation procedure using Vagrant. This will allow you to use exactly the same setup I have!
Learn more from the full course
AWS Infrastructure as Code With Terraform [2024 Updates]
Terraform, a popular infrastructure automation tool for DevOps. Terraform with AWS, Packer, Docker, ECS, EKS, Jenkins
12:38:55 of on-demand video • Updated April 2025
Understand, use and apply terraform, including advanced terraform features
Use terraform to provision AWS resources
Prepare for the HashiCorp Terraform Certification with lectures aligned with the exam objectives
Use terraform with Packer to create custom images
Use terraform with AWS ECS, Fargate, and CodePipelines
Be able to apply DevOps techniques using terraform
English [CC]
Instructor: In this demo I will show you how to install Terraform using Vagrant. If you're like me, I don't really like to install anything on my Mac without using Vagrant. If you don't really know what Vagrant is it's just a very simple way of starting virtual machines. So first, what you will need if you want to go the Vagrant way, is to download VirtualBox. So you just go to virtualbox.org and you click Download VirtualBox. Then you go to vagrantapp.com and you download Vagrant. You then install VirtualBox and Vagrant on your Mac or your Windows or even your Linux and then you can use my image that I prepared for you that already comes with Terraform. The only thing that you need to do is to Git Clone this URL. You can also download a ZIP If you just go to this URL and you put this URL in your browser. If you have Git installed, you can use Git Clone. Once it is cloned, you will see that you will have a Vagrantfile, a README, and a folder scripts with the install.sh in it. This install.sh will install Ansible and Terraform and other useful software that you might need if you are in a DevOps role. So the only thing that you have to do now when Vagrant and VirtualBox are installed is you type vagrant up. And vagrant up is going to launch an ubuntu box and is going to pre-install some of the software for you. And just pause the video for a second because vagrant up can take some time, and if the last lines are like successfully installed and inflating Terraform then you have this Vagrant ubuntu image installed and Terraform is installed on it. If you have Linux or Mac, you can just type vagrant ssh. If you have Windows, you might want to type vagrant ssh-config which is just going to show you how to connect to this Vagrant box. I have Mac, so I'm going to use vagrant ssh. If you have Windows, you can use something like PuTTY, for instance. Then I'm going to type terraform and you see Terraform is installed. If you are in doubt whether to install it on your whole system or using Vagrant, I would prefer Vagrant, because then your system should be identical to what I have.