From the course: Essential Terraform in AWS
Unlock this course with a free trial
Join today to access over 25,900 courses taught by industry experts.
Analyzing the state file
From the course: Essential Terraform in AWS
Analyzing the state file
Now it's time to destroy our infrastructure. You don't want to run infrastructure any longer than you have to because you could possibly be billed. It could cost you money. So always remember to destroy the infrastructure. Make a note of it. Put a sticky on your monitor. Destroy. Make sure that you do it. So let's bring up our terminal here and let's take a look. First of all, we'll go full screen on this, and first of all let's take a look at the Terraform Apply help file. When we do so, you'll see it creates or updates infrastructure according to your Terraform configuration and you have lots of options. For example dash auto dash approve that skips the approval stage the verification or confirmation before it applies so it'll just go right ahead with it without you typing yes and this is commonly what you use in the field so it'll get approved quickly without having to type anything it's also good for scripts so it happens automatically But you need to make sure that you have a…
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 AWS5m 17s
-
(Locked)
Analyzing the state file10m 13s
-
(Locked)
Destroying the infrastructure10m 13s
-
(Locked)
Quiz9m 24s
-
(Locked)
-
-
-
-