-
Notifications
You must be signed in to change notification settings - Fork 9.7k
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
address conflict btw list-type attributes and ignore_changes #9791
Conversation
fixes hashicorp#9043 Change-Id: I7b047625c404e64521f5999e032edfe4a6d536c7
This fixes the issue in #9043 but introduces another artifact. Not only does it fix my security groups but it also lists the ebs_block_device as changing even though it is not.
I noticed this while debugging... Here is the debug code,
My guess is that since I am not specifying a number of iops it is detecting it as a change from "150" => "". Setting the iops in my TF template to 150 actually makes the reported change disappear. Should find a solution that doesn't require settings iops though. Also, I experienced this issue by spinning up instances referencing user_data resources and later removing those resources and setting lifecyle In the meantime while waiting for this fix my workaround is to revert the changed that removed the user_data resources, that way I can remove the lifecyle changes and, as expected, I do not have the issue adding security groups anymore. |
by chance did you see if it was going to (or did) actually change your block device? Or was it purely screen spam? |
With Terraform plan it shows as if it would modify the attribute. I did not test if it actually did. |
It actually shows as the only change to other instances. Which leads me to believe that Terraform would always think there is a change to apply even when there is none. |
OK cool, thanks for testing! I'll try and reproduce and see what I can do. |
I wonder if this is necessary after #12897 |
Yaa, I should close this since it's supposedly fixed. I haven't tested personally tho. |
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. |
fixes #9043