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.
Initializing the working directory
From the course: Essential Terraform in AWS
Initializing the working directory
- [Instructor] Okay, we've done a lot of the basic work. Now we need to initialize our directory so we can actually use it to build infrastructure. So I'm going to bring the terminal back up, get out of full screen mode here, and we're going to run the Terraform init command. By the way, you'll note that I'm using the tab key as we go through this TER tab and that gives us terraform. IN tab that gives us init. Use the tab key for tab completion to auto complete as much as possible in the command line. So Terraform inits, I'm going to go full screen on this terminal and run that command now and let's watch what happens. First, it says initializing the backend. That is going to be a local backend that will be using a lot during the first half of this course. We'll talk about remote backends later. But initializes the local backend, which is just within the lesson zero three directory. Then it initializes provider plugins. So whatever provider plugins you need, the code you need to talk…
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)
-
-
-
-