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 tfApply, tfImport, tfStateMv`, tfStateRm, tfTaint and tfUntaint`. It will also perform a plan --refresh-only under the hood in tfPlan tasks.

This might seem strange to people coming directly from working with Terraform, 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 additional plan operation to be executed inside the tfPlan tasks,