-
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 service resources need ID attribute #8799
Comments
I was able to work around the issue completely by using a This would be the resulting code:
|
I also looked into submitting a PR for the original request, but it seems like it was beyond my level of go knowledge (practically nothing past go template.) From what I could gather, we would need to add logic to query all services with the appropriate node, name, etc. criteria, and parse through them to find the instance of the service matching the resource in our catalog. Actually inserting an ID is easy enough, but simply throwing the ID at consul caused terraform plan/execution diff errors when I tried it. |
Hi Paul, From a quick review, it looks like it would completely solve my issue. Unfortunately, I am not able to test; I ran into a lot of problems with the Consul provider and had to implement a solution using .json configured services and a Terraform file provisioner. Regards, |
No worries - I'll close this out and if you come back to it then we can reopen it if it doesn't Thanks for getting back in touch Paul |
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. |
Terraform Version
0.7.3
Affected Resource(s)
Terraform Configuration Files
Expected Behavior
Two services named web should have been registered with Consul.
Actual Behavior
ID collision prevents a single node from registering more than one service with a given name.
Steps to Reproduce
terraform apply
terraform plan
The text was updated successfully, but these errors were encountered: