aws_ mq_ broker cost estimation
A managed ActiveMQ or RabbitMQ message broker. Priced per broker-instance-hour by instance type and deployment mode, plus storage.
An aws_
Deployment mode is the multiplier people miss. SINGLE_
Storage is the second dimension. ActiveMQ on EBS bills per GB-month for the broker's message store; the throughput-optimized option costs more. c3x prices the instance-hours from the configuration; storage is included where the size is declared, and message volume itself is not separately metered by Amazon MQ.
Terraform example
A minimal but realistic configuration that C3X can estimate.
resource "aws_mq_broker" "events" {
broker_name = "events"
engine_type = "ActiveMQ"
engine_version = "5.18"
host_instance_type = "mq.m5.large"
deployment_mode = "ACTIVE_STANDBY_MULTI_AZ"
user {
username = "admin"
password = var.mq_password
}
}Pricing dimensions
What you actually pay for when you provision aws_.
| Dimension | Unit | What's being charged |
|---|---|---|
| Broker instance hours | per instance-hour | Rate for the host_ $0.30/hour for mq.m5.large ActiveMQ |
| Storage | per GB-month | Broker message-store storage on EBS. Throughput-optimized storage costs more than the standard tier. $0.10/GB-month (EBS) |
Sample C3X output
Example output from c3x estimate (active/standby = 2 instances):
aws_mq_broker.events
└─ Broker instances (mq.m5.large x 2) 1,460 instance-hours $438.00
OVERALL TOTAL $438.00Optimization tips
Common ways to reduce aws_ cost without changing the workload.
Use SINGLE_ INSTANCE for non-production
50%Active/standby doubles the instance-hour cost for the HA standby. Dev and test brokers rarely need it; SINGLE_
Right-size the instance type
Up to 80% at small sizesBrokers are often over-provisioned. mq.t3.micro handles low-throughput queues for a fraction of an m5. Move up only when connection or throughput limits bind.
Consider SQS/SNS for simple queueing
Workload-dependentIf you don't need JMS/AMQP protocol compatibility, aws_
FAQ
How does c3x estimate Amazon MQ cost?
It reads host_
Why does active/standby cost twice as much?
ACTIVE_
Are ActiveMQ and RabbitMQ priced the same?
The instance-hour rates are the same per instance type, but RabbitMQ cluster deployments run three instances, so a clustered RabbitMQ broker costs 3x a single instance.
Does message volume affect the cost?
No. Amazon MQ bills for the broker instance and storage, not per message. Throughput is bounded by the instance type you pick, not metered separately.
Is this cheaper than SQS?
Usually not for simple workloads. SQS has no always-on cost and bills per request. Amazon MQ is worth its standing cost only when you need JMS, AMQP, MQTT, or STOMP protocol compatibility.
Related resources
More AWS resources
Estimate this resource in your own Terraform
Free, open source, no API key. C3X parses your Terraform and shows line-item cost for every resource, including aws_.