From the course: Introduction to Terraform on Azure

Unlock the full course today

Join today to access over 24,400 courses taught by industry experts.

Terraform commands

Terraform commands

- [Instructor] Now that we have our environments all set up and ready to go, let's take a look at the main commands we'll be using for this course. One of the most common commands you'll be using is Terraform init. This prepares your working directory for other commands throughout your configurations. We then have Terraform validate. This just checks whether your configuration is valid. Whether it's variables or typos, Terraform validate is really helpful to catch those errors. Next, we have Terraform plan. This shows all the changes that will be taking place with your current configuration. Even with our next command, Terraform apply, every time you run Terraform apply, it will also run Terraform plan at the same time to show you what you're going to create or update using your infrastructure as code. Both are super helpful to see your changes on what's going to happen once you apply that Terraform. So Terraform apply…

Contents