-
Notifications
You must be signed in to change notification settings - Fork 9.6k
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
consul_keys show up as changed randomly #5674
Comments
It happens repeatedly, but it's not always the same keys. Rather, I should say, that for each "apply" I do it's the same keys, but from one "apply" to the next, the keys that show up will be different. It's also not always all the keys defined in a single "consul_key" set. So, for example, if I have 5 keys set in a single consul_key set, it may show this for only one of them, or it may show this for all 5. Thanks! |
Ok. So I figured out what is going on here. Basically, I had the following in a module:
and the following not in a module:
What would happen is that it would alternately set the consul path "service/app/api/prod" to one value and then the next, so that values in consul would alternate with each run. Not sure this is a bug at all, but this was definitely an odd result. |
Hi @dansteen, Having conflicting settings in different bits of Terraform will generally have weird, undefined behavior. I'm sorry that it was hard to see what was going on here... we could potentially explore a feature that allows providers to identify and warn about conflicts in different resources but that is not something Terraform is able to do today. Sorry for the trouble, but I'm glad you were able to figure it out! I'm going to close this out for now, since I don't think there's any Terraform change we could make in the short term that would've made the experience better here, though we might later get enough examples of this sort of problem to think about a new issue around detecting conflicts. |
not a problem. Thanks! |
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. |
Since v0.6.13, consul_keys that are set in my config show up as "modified" in my "terraform plan"s randomly. I have not yet found a pattern as to when they will show up and when they won't. Here is a config example:
This results in the following plan, but nothing has changed:
The text was updated successfully, but these errors were encountered: