DEV Community

Cover image for Terraform plan: what to read before you press apply
Georgi Kalchev
Georgi Kalchev

Posted on Originally published at aiskills402.com

Terraform plan: what to read before you press apply

A plan is a preview of what will be destroyed, replaced or opened. Read the action symbols, the replacement reasons and the firewall lines before you approve.

Most of a terraform plan is routine: tags change, a size is raised, a new rule appears. A few lines are different, because applying them removes data that cannot be rebuilt or opens a service to the whole internet. This guide shows where those lines hide in the output, what each marker means, and a fixed order of reading that takes a couple of minutes. The short answer to the question in the title: read the action on every resource that holds data, read the reason behind every replacement, and read the source address of every firewall rule that was added or changed. The summary count at the bottom tells you how much to read, not whether it is safe.

Read the full report on AISkills402: https://aiskills402.com/blog/terraform-plan-read-before-apply?utm_source=devto&utm_medium=social

Top comments (0)