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.
Terraforming the infrastructure
From the course: Essential Terraform in AWS
Terraforming the infrastructure
- [Instructor] Now, let's terraform our infrastructure. So we'll get into the terminal, and we'll go ahead and do the commands that we need to do. But first, we need to change over to our working directory. Like the last lesson, this is going to be the instances directory. So we'll change over to that now. And inside there, we see our four terraform files. So that's where we're going to work. First thing I'm going to run is a terraform fmt. And that actually made some changes there, let's take a look at the main.tf. It might have modified the user_data option here. It's lined up the equal signs, and so on. So that's good, terraform format is done. Now we'll run a terraform init. That initializes the backend. And at this point, we've moved up to version 4.67. And it's a new day here, and it's been recording the videos. Yesterday it was 4.66, today it's 4.67. So you can see how quickly AWS will release new versions, or at least new minor versions of their provider plugin. But it is…
Contents
-
-
-
-
-
-
-
(Locked)
Learning objectives1m 26s
-
(Locked)
Preparing the lab9m 25s
-
(Locked)
Analyzing the cloud-init script7m 39s
-
(Locked)
Terraforming the infrastructure5m 21s
-
(Locked)
Logging in to the instance and verifying the website7m 10s
-
(Locked)
Viewing resources with Terraform commands9m 29s
-
(Locked)
Replacing individual resources9m 4s
-
(Locked)
Destroying the infrastructure7m 39s
-
(Locked)
Quiz3m 39s
-
(Locked)
-