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
From looking at the documentation, it's unclear how a user should choose between the above three resources. Furthermore, both consul_service and consul_agent_service appear to do effectively the same thing, although the docs for consul_service indicate that registering a service with the catalog is something intended for the future. I believe the design of consul_service is confusing: if you configure the provider to use a non-local agent (such as consul.service.consul:8500 or some other mechanism that could non-deterministically choose a different agent on every Terraform plan or apply), subsequent Terraform invocations can fail if they're unable to find a service that was registered with a different agent previously.
The text was updated successfully, but these errors were encountered:
@blalor Entirely valid points, and yeah, I agree. It's one of the reasons the "consul_nodes" doesn't exist and instead I named it consul_catalog_nodes (same with "consul_self" vs consul_agent_self). The lack of clarity between "catalog" vs "agent" is a common sticking point, but the implicit behavior with the missing implementation detail is problematic. I'll update the docs soon. Thank you for highlighting 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 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 9, 2020
This issue was closed.
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
From looking at the documentation, it's unclear how a user should choose between the above three resources. Furthermore, both
consul_service
andconsul_agent_service
appear to do effectively the same thing, although the docs forconsul_service
indicate that registering a service with the catalog is something intended for the future. I believe the design ofconsul_service
is confusing: if you configure the provider to use a non-local agent (such asconsul.service.consul:8500
or some other mechanism that could non-deterministically choose a different agent on every Terraform plan or apply), subsequent Terraform invocations can fail if they're unable to find a service that was registered with a different agent previously.The text was updated successfully, but these errors were encountered: