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.
Reviewing the Terraform plan
From the course: DevOps Foundations: Your First Project
Reviewing the Terraform plan
- [Instructor] Okay, now that we've created our configuration file for our website, the next step is to deploy infrastructure with it. The first step in deploying infrastructure with Terraform is to initialize Terraform. That's done with a command called terraform init. So with Docker Compose or the way that we set our services, we type docker-compose run --rm to not preserve the container after we run this command, terraform init. The reason why this is going to work is because when we created our Terraform Docker file, we had Terraform or the Terraform application be the entry point for that Docker file. So as you can recall from that part of our course, any commands that are provided into the entry point through Docker or docker-compose run are fed into the application. And so in this case, because Terraform is our entry point, and init is our argument here, this init argument is going to be fed right into Terraform…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.
Contents
-
-
-
-
-
-
Creating the Terraform Dockerfile8m 58s
-
Building and testing a Terraform Docker image4m 32s
-
Creating a Terraform Docker Compose service1m 50s
-
AWS deployment explained3m 56s
-
Writing Terraform code12m 35s
-
Reviewing the Terraform plan9m 15s
-
Applying the Terraform plan7m 35s
-
Deploying the website into AWS S35m 48s
-
Destroying the website from AWS S36m 1s
-
Writing your integration test5m 55s
-
Running your integration test4m 58s
-
-
-