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

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