From the course: Essential Terraform in AWS
Unlock this course with a free trial
Join today to access over 25,300 courses taught by industry experts.
Learning objectives
From the course: Essential Terraform in AWS
Learning objectives
- We're back with another lesson, and this time we're finally going to build our first AWS infrastructure. Here's what we'll do. We will view the provided step-by-step instructions, create our first main.tf file. That's our first Terraform file. We'll format our Terraform code using the Terraform fmt command. Then we'll initialize our working directory so that it can accept our provider plugin. We do that with the Terraform init command. Afterwards, we'll validate the code and check the syntax. Do that with the Terraform validate command. After that, we'll view the Terraform plan, sort of a dry run for our Terraform infrastructure. It doesn't actually build anything, but it shows you what it will do if it was to build the infrastructure. And we showed that with the Terraform plan command. Finally, we'll apply the infrastructure to AWS, and as you can guess, the command is Terraform apply. Then we'll analyze the state file that was created automatically by Terraform, which tells you…
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)
-
-
-
-