From the course: Essential Terraform in AWS

Unlock this course with a free trial

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

Quiz

Quiz

- [Instructor] Time for the quiz. Question 1, which of the following is the proper workflow for deploying new infrastructure using Terraform? Is it a, write the Terraform code, then run terraform init, terraform plan, and terraform apply. Or b, import the current infrastructure to the state file, update the code, and run terraform apply. Or c, run terraform init, terraform apply, terraform plan, and terraform fmt. Or d, write the Terraform code, then run terraform show and then terraform apply. Pause the video now as you think about the answer, and I'll be back in just a moment. And the correct answer is a. Of the listed answers, the proper workflow for deploying new infrastructure while using Terraform is to write the Terraform code, then run the terraform init command, then run the terraform plan command, and finally the terraform apply command. Now, you might do other things as well in between some of these steps. For example, you might do a terraform fmt. That could be done at any…

Contents