Skip to content

[Bug]: Modifying the configuration of a RabbitMQ broker running 3.13.7 fails with BadRequestException: Broker engine version [3.13.7] is invalid for broker engine type [RABBITMQ] #42516

Open
@michaelbauerinc

Description

@michaelbauerinc

Terraform and AWS Provider Version

Terraform Core Version

Terraform v1.7.5

AWS Provider Version

v5.97.0

Affected Resource(s) or Data Source(s)

aws_mq_broker

Expected Behavior

Terraform should allow us to configure a broker currently running RabbitMQ version 3.13.7 without error, especially given that the engine is already on that version. Per #38708, a similar issue for ActiveMQ was reportedly fixed in AWS provider v5.68.0.

Actual Behavior

Attempting to set engine_version = "3.13.7" fails, claiming the patch version cannot be specified and that only 3.13 is valid.

Relevant Error/Panic Output

Error: creating MQ Broker (***-rabbitmq): operation error mq: CreateBroker, https response error StatusCode: 400, RequestID: 63fa9315-442b-4755-a895-fd5a379dd6a3, BadRequestException: Broker engine version [3.13.7] is invalid for broker engine type [RABBITMQ]. Valid values: [3.13]

Sample Terraform Configuration

Click to expand configuration
resource "aws_mq_broker" "rabbitmq" {
  broker_name                = local.name
  engine_type                = "RabbitMQ"
  engine_version             = "3.13.7"
  host_instance_type         = "mq.t3.micro"
  apply_immediately          = true
  auto_minor_version_upgrade = true
  deployment_mode            = "SINGLE_INSTANCE"

  subnet_ids      = [var.private_subnets[0]]
  security_groups = [module.security_group[0].security_group_id]

  user {
    username = var.rabbitmq_user
    password = var.rabbitmq_password
  }

  logs {
    general = true
  }

  encryption_options {
    use_aws_owned_key = true
  }

  maintenance_window_start_time {
    day_of_week = "SUNDAY"
    time_of_day = "05:00"
    time_zone   = "UTC"
  }

  tags = var.tags
}

Steps to Reproduce

  1. Use Terraform v1.7.5 and AWS provider v5.97.0

  2. Attempt to provision an aws_mq_broker resource with engine_version = "3.13.7"

  3. Run terraform apply

Debug Logging

Click to expand log output

GenAI / LLM Assisted Development

n/a

Important Facts and References

Similar behavior previously reported in #38708 but was allegedly resolved. We are still experiencing the error even on LTS.

Would you like to implement a fix?

No

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugAddresses a defect in current functionality.needs-triageWaiting for first response or review from a maintainer.service/mqIssues and PRs that pertain to the mq service.waiting-responseMaintainers are waiting on response from community or contributor.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions