💻 Tech
ignore_changes
of lifecycle
allows certain configuration to be skipped when Terraform detects differences between the current state and the remote resource. In the example below, regardless of the value of field1
, the changes are not detected when you perform terraform plan
. This is useful if you have properties that are updated by an external process.
lifecycle {
ignore_changes = [field1]
}