cloudamqp / terraform-provider-cloudamqp

Terraform Provider for CloudAMQP
https://registry.terraform.io/providers/cloudamqp/cloudamqp
Mozilla Public License 2.0
35 stars 39 forks source link

Allow managing RabbitMQ version #82

Closed yashbhutwala closed 2 years ago

yashbhutwala commented 3 years ago

Currently, rabbitmq version cannot be managed and upgrade with this terraform provider

Migrated from https://github.com/hashicorp/terraform-provider-cloudamqp/issues/5 since that repository is archived now.

tbroden84 commented 3 years ago

Have had internal discussion about this, to automate the upgrade of both RMQ and Erlang versions. So far only prototype solutions but no real one found. One way could be to allow the updates to occur similar as our console, but also have its risks.

yashbhutwala commented 3 years ago

OK sounds good, thanks @tbroden84 for the open communication. Another thing that's relevant for which I have a ticket with CloudAMQP support team is that currently with just the CloudAMQP API, there is no way to determine if configuration change can be performed for the server at any given time, i.e.: if I'm make the API call to upgrade erlang version, there is not an explicit API call I can make to know if that operation has completed; so if I fire the erlang upgrade, and then if I try to fire the upgrade rabbitmq immediately, I get a 500. Hopefully, that API could help as well.

philipp-hb commented 2 years ago

it would be really great if RMQ and Erlang versions could be managed using Terraform. We got quite a bunch of clusters and clicking through each of them is quite a pain

torbendury commented 2 years ago

Beside the Changelog, is there an API to get available versions for instance XY?

dentarg commented 2 years ago

Beside the Changelog, is there an API to get available versions for instance XY?

@torbendury there is now! See "Get available versions" at https://docs.cloudamqp.com/cloudamqp_api.html#nodes

tbroden84 commented 2 years ago

We have now released a new version v1.17.0 and added support to automatically upgrade both RabbitMQ and Erlang versions to latest possible upgradable versions.

Reason both are upgraded in the same go, is to avoid mismatch in required Erlang version depending on RabbitMQ version. From current versions used, it's possible to check which possible versions the upgrade will upgrade to.

Then to actually trigger the upgrade

Note: Depending on current versions used, cloudamqp_upgrade_rabbitmq may need to be triggered multiple times.

Pull request for this feature #151