Amazon MQ broker inventory

Record the purpose and owner of each message broker.

Description

This entry lists an Amazon MQ broker declared in Terraform.

Potential impact

During an outage, missing ownership records can delay recovery.

Remediation

Record the owner and client services. Check network access, authentication, logs and engine support.

Examples

The example adds service and environment tags. Supply a securely managed password and a supported ActiveMQ version. For 5.18 and later, set auto_minor_version_upgrade to true.

Before

hcl
resource "aws_mq_broker" "broker" {
  broker_name         = "app-broker"
  engine_type         = "ActiveMQ"
  engine_version      = var.activemq_engine_version
  host_instance_type  = "mq.t3.micro"

  user {
    username = "appuser"
    password = var.broker_password
  }
}

After

hcl
resource "aws_mq_broker" "broker" {
  broker_name        = "app-broker"
  engine_type        = "ActiveMQ"
  engine_version     = var.activemq_engine_version
  host_instance_type = "mq.t3.micro"

  tags = {
    Service     = "messaging"
    Environment = "production"
  }

  user {
    username = "appuser"
    password = var.broker_password
  }
}

References