Skip to content

Getting "Audit logging is not supported for RabbitMQ brokers." error when audit logging set to false or not defined #44

@audible-nod

Description

@audible-nod

I'm trying to deploy RabbitMQ. It's a test, so the set up is basic and variables are hardcoded.
I'm on Terraform v0.13.0, runnning on macOS.

module "aws_mq_broker"{
    source = "git::https://github.com/cloudposse/terraform-aws-mq-broker.git?ref=0.13.0"
    stage                        = "test"
    name                         = "rabbitmq"
    apply_immediately            = true
    auto_minor_version_upgrade   = false
    deployment_mode              = "CLUSTER_MULTI_AZ"
    engine_type                  = "RabbitMQ"
    engine_version               = "3.9.13"
    host_instance_type           = "mq.m5.large"
    general_log_enabled          = true
    audit_log_enabled            = false
    encryption_enabled           = true
    use_aws_owned_key            = true
    vpc_id                       = "vpc-xxxxx"
    subnet_ids                   = [ "subnet-xxxx", "subnet-xxxx" ]
    security_group_rules        = []
}

terraform plan succeeds, but terraform apply errors out with:

Error: BadRequestException: Audit logging is not supported for RabbitMQ brokers.
{
  RespMetadata: {
    StatusCode: 400,
    RequestID: "5ee2ba47-6465-4acb-9ebd-e3839e8adbe9"
  },
  ErrorAttribute: "logs.audit",
  Message_: "Audit logging is not supported for RabbitMQ brokers."
}

I have tried 1) setting both general and audit logs to false; 2) removing these lines completely. In all scenarios I get the same error. I've seen similar issues discussed on Github and Stackoverflow when using the resource "rabbitmq", but in their case, if I understood correctly, the issue was that they didn't define these variables, so terraform resorted to default, which was set to true.

Metadata

Metadata

Assignees

Labels

bug🐛 An issue with the system

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions