Changing State Cache Behaviour
In order for Gradle to do the best job it can, in determining whether tasks are up to date, it perform a state pull
operation after each tofuApply
, tofuImport
, tofuStateMv`,
tofuUntaint`.
It will also perform a tofuStateRm
, tofuTaint
and plan --refresh-only
under the hood in tofuPlan
tasks.
This might seem strange to people coming directly from working with OpenTofu, where people are working manually and have more cognitive control over their process.
It is possible the above behaviour off, by setting these Gradle properties to true
:
-
org.ysb33r.iac.tf.state.cache.disabled
— Prevent state being pulled after each of the mentioned operations. -
org.ysb33r.iac.tf.auto.plan.refresh.disabled
— Prevent additionalplan
operation to be executed inside thetofuPlan
tasks,