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

rabbitmq_user resource fails while applying #20

Closed
aggarwalaman1191 opened this issue Aug 20, 2021 · 9 comments
Closed

rabbitmq_user resource fails while applying #20

aggarwalaman1191 opened this issue Aug 20, 2021 · 9 comments

Comments

@aggarwalaman1191
Copy link

Terraform Version

1.0.0

Affected Resource(s)

rabbitmq_user

Terraform Configuration Files

resource "rabbitmq_user" "cloudamqp_users" {
name = "test"
password = "test"
tags = ["administrator", "management"]
}

Expected Behavior

Create users successfully in cloudamqp

Actual Behavior

It creates user in the cloudamqp but terraform apply fails with below error:

Error: json: cannot unmarshal array into Go struct field UserInfo.tags of type string
with rabbitmq_user.cloudamqp_users
on test.tf line 50, in resource "rabbitmq_user" "cloudamqp_users":
resource "rabbitmq_user" "cloudamqp_users" {

Can you help what could be the issue here?

@tgraskemper
Copy link

I can confirm for me it's an issue with 3.9.5 as I am able to create users through TF in 3.7.27 and 3.8.21. I haven't tested all 3.9.x versions but I'll update if I find out more.

@crisp2u
Copy link

crisp2u commented Aug 31, 2021

This looks fixed in the latest version of rabbithole and that version is used on master. @cyrilgdn Can we have a new release with the master code that contains the fix for this ? We are blocked by this and we don't want to fork the provider just for this.

@hareshdk19
Copy link

hareshdk19 commented Aug 31, 2021

@tgraskemper @crisp2u @aggarwalaman1191 @cyrilgdn Can you please give an approximate date when it can be released ?

@cyrilgdn
Copy link
Owner

@crisp2u @hareshdk19 I'll trigger a release this evening (CEST) or tomorrow.

@cyrilgdn
Copy link
Owner

cyrilgdn commented Sep 1, 2021

v1.6.0 has been released today, let me know if it fixes your issue.

@aggarwalaman1191
Copy link
Author

thanks @cyrilgdn , this worked pretty well. :)

@Sweatha-g
Copy link

@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"

@Sweatha-g
Copy link

Sweatha-g commented Nov 10, 2023 via email

@Mrunu07
Copy link

Mrunu07 commented Dec 8, 2023

@Sweatha-g
#29 (comment)
was helpfull we had an additional / in our provider and removing it worked

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

7 participants