From the course: Developing Infrastructure as Code with Terraform
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Applying your first Terraform - Terraform Tutorial
From the course: Developing Infrastructure as Code with Terraform
Applying your first Terraform
- Okay, with our environment set up, let's go ahead and take our first look at Terraform as a tool. So in the code, we've got this 1.3 section folder. So we want to use a shell here. And this can be any Unix shell, it can be PowerShell. It can be pretty much any command-line that you use in our environment. In the Dev Container, we're running Z shell, which is just a generic Unix shell. Any shell would work here. If you're on Windows, you might want to switch to PowerShell or something like that. But from our Shell, we need to change directory into the folder that contains the Terraform. So let's take a look at what's in this folder. So we've got a couple of files here. The one that we care about is this one with the .tf extension. So Terraform files always have to have a .tf extension. And the reason we had to change directory into that folder is that Terraform is directory-oriented. Meaning any of those .tf files are going to be read by Terraform when we start running the Terraform…