mirror of
https://github.com/opentofu/opentofu.git
synced 2025-01-23 23:22:57 -06:00
f480ae3430
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
8 lines
118 B
HCL
8 lines
118 B
HCL
resource "aws_instance" "foo" {
|
|
required_field = "set"
|
|
|
|
lifecycle {
|
|
ignore_changes = ["required_field"]
|
|
}
|
|
}
|