Skip to content

Amazon MQ

CloudMock emulates Amazon MQ, supporting broker management, configurations, users, and tagging.

OperationStatusNotes
CreateBrokerSupportedCreates a message broker
DescribeBrokerSupportedReturns broker details
ListBrokersSupportedLists all brokers
DeleteBrokerSupportedDeletes a broker
UpdateBrokerSupportedUpdates broker configuration
RebootBrokerSupportedReboots a broker
CreateConfigurationSupportedCreates a configuration
DescribeConfigurationSupportedReturns configuration details
ListConfigurationsSupportedLists configurations
UpdateConfigurationSupportedUpdates a configuration
CreateUserSupportedCreates a broker user
DescribeUserSupportedReturns user details
ListUsersSupportedLists users for a broker
UpdateUserSupportedUpdates a user
DeleteUserSupportedDeletes a user
CreateTagsSupportedAdds tags to a broker
DeleteTagsSupportedRemoves tags from a broker
ListTagsSupportedLists tags for a broker
import { MqClient, CreateBrokerCommand } from '@aws-sdk/client-mq';
const client = new MqClient({
endpoint: 'http://localhost:4566',
region: 'us-east-1',
credentials: { accessKeyId: 'test', secretAccessKey: 'test' },
});
const { BrokerId } = await client.send(new CreateBrokerCommand({
BrokerName: 'my-broker',
EngineType: 'ACTIVEMQ',
EngineVersion: '5.17.6',
HostInstanceType: 'mq.m5.large',
DeploymentMode: 'SINGLE_INSTANCE',
Users: [{ Username: 'admin', Password: 'Password123' }],
}));
console.log(BrokerId);
import boto3
client = boto3.client('mq',
endpoint_url='http://localhost:4566',
region_name='us-east-1',
aws_access_key_id='test',
aws_secret_access_key='test')
response = client.create_broker(
BrokerName='my-broker',
EngineType='ACTIVEMQ',
EngineVersion='5.17.6',
HostInstanceType='mq.m5.large',
DeploymentMode='SINGLE_INSTANCE',
Users=[{'Username': 'admin', 'Password': 'Password123'}])
print(response['BrokerId'])
cloudmock.yml
services:
mq:
enabled: true
  • No actual ActiveMQ or RabbitMQ engine is provisioned
  • Broker endpoints are generated but not functional for messaging
  • Reboots update status but do not affect any running process