Skip to content

Conversation

@msvechla
Copy link

Adds support for the queue-type parameter when creating federation upstreams, allowing users to specify the type of queue to be created (classic, quorum, or stream).

resource "rabbitmq_federation_upstream" "example" {
  name  = "my-upstream"
  vhost = "my-vhost"

  definition {
    uri             = "amqp://upstream-server:5672/%2f"
    queue           = "my-queue"
    queue_type      = "quorum"  # Can be "classic", "quorum", or "stream"
    prefetch_count  = 1000
    reconnect_delay = 5
  }
}
  • The queue_type parameter is optional and backward compatible
  • Uses the existing QueueType field in rabbit-hole library

Adds support for the `queue-type` parameter when creating federation upstreams, allowing users to specify the type of queue to be created (classic, quorum, or stream).

```hcl
resource "rabbitmq_federation_upstream" "example" {
  name  = "my-upstream"
  vhost = "my-vhost"

  definition {
    uri             = "amqp://upstream-server:5672/%2f"
    queue           = "my-queue"
    queue_type      = "quorum"  # Can be "classic", "quorum", or "stream"
    prefetch_count  = 1000
    reconnect_delay = 5
  }
}
```

- The queue_type parameter is optional and backward compatible
- Uses the existing QueueType field in rabbit-hole library v3.2.0
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 this pull request may close these issues.

1 participant