From the course: HashiCorp Certified: Terraform Associate (003) Cert Prep by KodeKloud
Unlock this course with a free trial
Join today to access over 23,400 courses taught by industry experts.
Installing Terraform and HCL basics - Terraform Tutorial
From the course: HashiCorp Certified: Terraform Associate (003) Cert Prep by KodeKloud
Installing Terraform and HCL basics
- [Instructor] Let's now recap how to install Terraform and learn the basics of HCL. Installing Terraform is as simple as downloading the binary for the operating system of choice and copying it to the system path. It is supported on most popular operating systems such as Windows, Mac, Linux, Solaris, and OpenBSD. And that's about it. We can now use Terraform to start provisioning some resources. Terraform uses configuration files that are written in HCL, which is an abbreviation for HashiCorp Configuration Language. These files have an extension of .tf and are made up of blocks and arguments. The blocks either provide information about the infrastructure platform or define resources within that platform that we want to create. Here is an example of one such configuration file called local.tf that will create a file with some data on the local system. We will start off with the simple example, but we'll mostly stick to AWS-based instances and resources for the remainder of this…