terraform-provider-rabbitmq
terraform-provider-rabbitmq copied to clipboard
Rabbitmq-3.9.6 no users/vhost being created
@cyrilgdn I am using rabbit version 3.9.6 and using latest provider v1.6.0 to create resources and it throws error while creating my vhost and user " Error 405 from RabbitMQ:EOF"
Hi @Sweatha-g
Could you provide a configuration example of your vhost/user? Is it on a used cluster or one you are creating?
I have the same error.
Terraform version: Terraform v1.2.3 on windows_amd64
provider 1.6.0
Brand new linux container (rabbitmq:3.10-management-alpine), login with guest user created by default. Rabbitmq runs behind a traefik reverse proxy acting just as an ssl endpoint
vhost declaration:
resource "rabbitmq_vhost" "bla" {
name = "bla"
}
Error: Error 405 (Error 405 from RabbitMQ: EOF):
******************* EDIT **********************************
-> found the issue, i let a trailing slash (https://myhost/) in the rabbitmq endpoint in the configuration of the provider.... maybe a good idea to sanitize inputs for dummy people like me
Same issue here using provider v1.8.0 and RabbitMQ 3.12.6.
No trailing slash on the endpoint. :)
I can use curl
to create the vhost
but when using this provider I get:
Error: Error 405 (Error 405 from RabbitMQ: EOF):
with rabbitmq_vhost.primary,
on rabbitmq.tf line 1, in resource "rabbitmq_vhost" "primary":
1: resource "rabbitmq_vhost" "primary" {
Found it per this the endpoint URL shouldn't have /api
on the end, nor should it have a trailing /
.