RabbitMQ - Can't enable automatic minor version upgrade

0

As of RabbitMQ version 3.13, AWS will always automatically do minor version upgrades. This disables the ability to interact with the "automatic minor version upgrades" setting, as the behaviour is always happening.

Our Terraform recognises that automatic minor version upgrades are always on for RabbitMQ 3.13, and requires this setting to be enabled. However, we have ended up with a situation where even though automatic upgrades are happening - I've observed it occurring - the setting is technically still disabled, which causes an error with terraform.

Is there a way to force this setting to be enabled? It can't be enabled in the AWS console because we're prevented from interacting with the setting in any way. Trying to do it in terraform by setting auto_minor_version_upgrade to true also has not worked.

asked 5 days ago32 views
2 Answers
1

I apologize, but there seems to be a misunderstanding in your statement. Let me clarify the situation regarding automatic minor version upgrades for Amazon MQ with RabbitMQ:

For RabbitMQ engine version 3.13 and above on Amazon MQ, AWS manages upgrades to the latest patch version automatically. However, this does not mean that the "automatic minor version upgrade" setting is always enabled or that you can't interact with it.

The "automatic minor version upgrade" setting still exists and can be controlled. This setting determines whether your broker will automatically upgrade to new minor versions (e.g., from 3.13.x to a future 3.14.x) when they become available.

You can enable or disable this setting using the AWS Management Console, AWS CLI, or Amazon MQ API. If you're having trouble modifying this setting in the console, you might want to try using the AWS CLI or API instead.

For example, using the Amazon MQ API, you can update the broker settings with the UpdateBroker operation. You would set the "autoMinorVersionUpgrade" property to "true" in the request payload.

If you're using Terraform and encountering issues, you might need to ensure that your Terraform AWS provider is up to date, as older versions might not correctly handle this setting for newer RabbitMQ versions.

Remember, enabling automatic minor version upgrades is generally recommended as it ensures your broker receives the latest security patches and bug fixes. If you're still encountering issues after trying these approaches, it would be advisable to contact AWS support for further assistance.
Sources
Managing Amazon MQ for RabbitMQ engine versions - Amazon MQ
Upgrading an Amazon MQ broker engine version - Amazon MQ

profile picture
answered 5 days ago
profile picture
EXPERT
reviewed 4 days ago
0
Accepted Answer

For anyone else seeing this - I found the solution myself. This setting cannot be changed in the AWS console or in the arguments given to terraform, but it can be changed in the AWS CLI like so:

aws mq update-broker --broker-id <mq broker id here> --auto-minor-version-upgrade

answered 5 days ago
profile picture
EXPERT
reviewed 4 days ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions