Skip to content
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_prepared_query doesn't support NodeMeta or ServiceMeta fields #192

Closed
cbroglie opened this issue Apr 29, 2020 · 2 comments · Fixed by #193
Closed

consul_prepared_query doesn't support NodeMeta or ServiceMeta fields #192

cbroglie opened this issue Apr 29, 2020 · 2 comments · Fixed by #193

Comments

@cbroglie
Copy link

Hi there,

Terraform Version

➜  tf git:(master) ✗ terraform -v
Terraform v0.12.24
+ provider.consul v2.7.0
➜  tf git:(master) ✗

Affected Resource(s)

  • consul_prepared_query

Expected Behavior

Consul allows prepared query templates to match using NodeMeta and ServiceMeta fields, but the Terraform resource isn't aware of them. See https://godoc.org/github.com/hashicorp/consul/api#ServiceQuery.

Actual Behavior

The Terraform resource is unaware of these fields, and therefore cannot read or write them.

Important Factoids

Most users can probably work around this by using Tags.

@remilapeyre
Copy link
Contributor

Hi @cbroglie, thanks for bringing that to my attention :)

#193 should add the missing attributes you are looking for.

@cbroglie
Copy link
Author

cbroglie commented May 1, 2020

Thanks!

remilapeyre added a commit that referenced this issue May 1, 2020
…uery (#193)

Closes #192

Co-authored-by: Rémi Lapeyre <remi.lapeyre@lenstra.fr>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants