plan symbols

The marks at the start of each plan line that say what will happen: + create, - destroy, ~ update in place, -/+ or +/- replace, <= read.

In more detail

The two replacement symbols differ in order: -/+ destroys the old object before creating the new one, which leaves a gap, while +/- creates the new one first. A replacement on anything holding data deserves a second read. The words forces replacement mark the attribute that caused it.

Example

  # local_file.greeting must be replaced
-/+ resource "local_file" "greeting" {
      ~ content = "Hello" -> "Hello, again" # forces replacement

Related terms

Taught in

References

Certification courses