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: Ability to target different Management API endpoints per resource #58

Open
floge07 opened this issue Jun 13, 2023 · 0 comments

Comments

@floge07
Copy link

floge07 commented Jun 13, 2023

The current configuration of the management server happens via the provider block.
Because of technical limitations of Terraform, the providers can only ever be static.

This is not usable for our use-case, where we have lots of dynamic rabbitmq servers via cloudamqp.

Would it be possible to create a configuration method, which would allow us to target multiple/different Management APIs in the same terraform runtime?
Something like this would work for us:

resource "rabbitmq_policy" "message_ttl" {
  for_each = x

  management = {
      endpoint = each.value.host
      username = each.value.username
      password = each.value.password
  }

  name  = "MessageTTL"
  vhost = "/"

  policy {
    ...
  }
}
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

No branches or pull requests

1 participant