Back to course

The Workflow: Plan (Predicting the Future)

Infrastructure as Code (Terraform & OpenTofu Mastery)

Step 2: The Dry Run

One of the most powerful features of IaC is the ability to see what will happen before it happens.

Run: bash tofu plan

Reading the Output

  • +: Means a resource will be created.
  • -: Means a resource will be destroyed.
  • ~: Means a resource will be updated in place.

plan compares your code to the actual state of the world and tells you the difference. It changes nothing on your computer or the cloud yet.