opentofu/terraform/test-fixtures/apply-ignore-changes-create/main.tf
Paul Hinze f480ae3430 core: Fix issues with ignore_changes
The ignore_changes diff filter was stripping out attributes on Create
but the diff was still making it down to the provider, so Create would
end up missing attributes, causing a full failure if any required
attributes were being ignored.

In addition, any changes that required a replacement of the resource
were causing problems with `ignore_chages`, which didn't properly filter
out the replacement when the triggering attributes were filtered out.

Refs #5627
2016-03-21 14:20:36 -05:00

8 lines
118 B
HCL

resource "aws_instance" "foo" {
required_field = "set"
lifecycle {
ignore_changes = ["required_field"]
}
}