-
Notifications
You must be signed in to change notification settings - Fork 9.3k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
aws_autoscaling_group: diffs didn't match during apply. #2476
Comments
I am trying to migrate from my old terraform version to the current one (0.11) and i am also having this issue. Is there a workaround for the time being? |
@crzo As I've mentioned, it crashes only the first time I apply changes, the second time I call it, it works fine. |
@marcinowski yes i know. same for me. unfortunately thats not a acceptable workaround, because we integrated the rollout in a jenkins job and trigger it twice is not really the way to go :-) hopefully a fix will come soon. |
Hi @marcinowski! Sorry for this strange behavior. It does look like this is the same problem as #2453, so I'm going to close this one just to consolidate the discussion over there. |
Actually, on second thought I'm going to reopen this since it these two problems do look subtly different based on the details in the error message. |
I don't yet have a full explanation for this, but as a note for a future person looking into this in more detail: The "Diff Two" in the error message seems to be missing the
Terraform saves the diff as part of its plan (which, in the case of It's not entirely clear why the second diff in this case would omit the @crzo did I understand correctly that you saw this behavior start only after upgrading to Terraform 0.11? If so, did you also upgrade the AWS provider at the same time, or did the AWS provider version stay constant through the upgrade? |
This seems to be the same as #1630 where there's some more background info and some workarounds documented, so I'm going to close this to consolidate the discussion over there. (For real, this time!) If either of you have more info, please do share it in the other issue so we can collect all this info in one place. Thanks again for reporting this! |
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 feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. Thanks! |
Terraform Version
Terraform Version: 0.11.0
Affected Resource(s)
Terraform Configuration Files
https://gist.github.com/marcinowski/4947f3e7e7e1a0938c00d7e02a35f8ef#file-main-tf
Debug Output
https://gist.github.com/marcinowski/4947f3e7e7e1a0938c00d7e02a35f8ef#file-error-log
Expected Behavior
Content should apply.
Actual Behavior
With the first
terraform apply
this error is raised. After I runterraform apply
the second time it works and doesn't raise this error.Steps to Reproduce
terraform apply
// this raises an error onautoscaling_group
terraform apply
// this appliesautoscaling_group
without an error.Important Factoids
Nothing I can think of
References
GH-2435 probably
The text was updated successfully, but these errors were encountered: