You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
After changing the user_data on an aws_instance resource, and subsequently adding ignore_changes = ["user_data"], the resource was forced to be created (another problem in itself) but once it was deleted it would fail to re-create with error:
2015/11/03 13:55:55 [ERROR] aws_instance.test: diffs didn't match
2015/11/03 13:55:55 [ERROR] aws_instance.test: reason: extra attributes: user_data
2015/11/03 13:55:55 [ERROR] root: eval: *terraform.EvalCompareDiff, err: aws_instance.test: diffs didn't match during apply. This is a bug with Terraform and should be reported.
2015/11/03 13:55:55 [ERROR] root: eval: *terraform.EvalSequence, err: aws_instance.test: diffs didn't match during apply. This is a bug with Terraform and should be reported.
2015/11/03 13:55:55 [ERROR] root: eval: *terraform.EvalOpFilter, err: aws_instance.test: diffs didn't match during apply. This is a bug with Terraform and should be reported.
2015/11/03 13:55:55 [ERROR] root: eval: *terraform.EvalSequence, err: aws_instance.test: diffs didn't match during apply. This is a bug with Terraform and should be reported.
Repeated attempts to terraform plan would show the creation of a new resource:
* aws_instance.test: diffs didn't match during apply. This is a bug with Terraform and should be reported.
Once this lifecycle clause was removed from the config...
lifecycle {
ignore_changes = ["user_data"]
}
The resources were created just fine. The big problem here is that we need to be able to ignore changes on attributes like user_data without causing the tfstate to be corrupted (er, out of sync).
The text was updated successfully, but these errors were encountered:
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.
ghost
locked and limited conversation to collaborators
Apr 27, 2020
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
After changing the user_data on an aws_instance resource, and subsequently adding ignore_changes = ["user_data"], the resource was forced to be created (another problem in itself) but once it was deleted it would fail to re-create with error:
Repeated attempts to terraform plan would show the creation of a new resource:
But running it would produce the same error.
Once this lifecycle clause was removed from the config...
The resources were created just fine. The big problem here is that we need to be able to ignore changes on attributes like user_data without causing the tfstate to be corrupted (er, out of sync).
The text was updated successfully, but these errors were encountered: