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

[Feature request] Add Targets block to consul_prepared_query resource #332

Closed
tristanmorgan opened this issue Jan 27, 2023 · 0 comments · Fixed by #340
Closed

[Feature request] Add Targets block to consul_prepared_query resource #332

tristanmorgan opened this issue Jan 27, 2023 · 0 comments · Fixed by #340
Milestone

Comments

@tristanmorgan
Copy link
Member

Terraform Version

Terraform v1.3.7
on darwin_arm64
+ provider registry.terraform.io/hashicorp/consul v2.17.0

Affected Resource(s)

  • consul_prepared_query

Terraform Configuration Files

resource "consul_prepared_query" "service_near_self" {
  connect      = false
  name         = ""
  near         = "_agent"
  only_passing = true
  service      = "$${match(1)}"

  dns {
    ttl = "1m"
  }

  failover {
    targets = [
      peer = "peered-dc2",
      datacenter = "federated-dc3"
    ]
  }

  template {
    regexp = "^(.*)$"
    type   = "name_prefix_match"
  }
}

Expected Behavior

With the update to the Consul API, The Terraform Providers should support the new failover.targets attribute.

References

updated API

@remilapeyre remilapeyre added this to the next milestone Feb 20, 2023
remilapeyre added a commit to remilapeyre/terraform-provider-consul that referenced this issue May 1, 2023
Also remove the copyright notices in the examples.

Closes hashicorp#332
remilapeyre added a commit that referenced this issue Jul 19, 2023
Also remove the copyright notices in the examples.

Closes #332
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants