DEV Community

Robert Orozco
Robert Orozco

Posted on

DAY 5: Lab: Benefits of State

Today, I performed a cluster web deployment in terraform.

The answer was it.

Take a minute to analyze:

Experiment 1 — Manual state tampering: Manually edit a value in terraform.tfstate

Change instance type

Run terraform plan to see the changes: No changes are needed!

Experiment 2 — State drift: In the AWS Console, manually change a tag on one of your EC2 instances. Run terraform plan without touching your code. Observe how Terraform detects the drift and what it proposes to do about it.

Terraform detech the change:

Top comments (0)