From the course: DevOps Foundations: Your First Project

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Solution

Solution

From the course: DevOps Foundations: Your First Project

Start my 1-month free trial

Solution

(upbeat music) - [Instructor] Okay, solving the Terraform VM challenge. Okay, let's take a look at how to accomplish this task. I had a lot of fun creating this challenge, and I hope you have a lot of fun solving it. Let's take a look at all the files that we're going to go through as part of this solution. So the first file that we're going to take a look at is terraform.Dockerfile. This is the Dockerfile that is going to run Terraform and create the VM that we're going to test. The next file that we're going to look at is docker-compose.yml. This defines the Terraform service that is going to create the container that runs Terraform from this Dockerfile, and it's also the service that you're going to be doing off your operations through. Lastly, we're going to look at main.tf. main.tf is the Terraform file that actually creates the VM. When we look at this, we'll also look at Terraform documentation to show you how to…

Contents