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

Reviewing the Terraform plan

From the course: DevOps Foundations: Your First Project

Start my 1-month free trial

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…

Contents