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
- [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
-
-
-
-
(Locked)
Learning objectives2m 17s
-
(Locked)
Viewing the step-by-step instructions7m 14s
-
(Locked)
Creating a main.tf file6m 40s
-
(Locked)
Formatting Terraform code4m 40s
-
(Locked)
Initializing the working directory7m 40s
-
(Locked)
Validating Terraform code7m 34s
-
(Locked)
Viewing the Terraform plan7m 31s
-
(Locked)
Applying the infrastructure to AWS7m 27s
-
(Locked)
Analyzing the state file5m 17s
-
(Locked)
Destroying the infrastructure10m 13s
-
(Locked)
Quiz9m 24s
-
(Locked)
-
-
-
-