Getting started: Creating and connecting to an ActiveMQ broker
A broker is a message broker environment running on Amazon MQ. It is the basic building block of Amazon MQ. The combined description of the
broker instance class (m5
, t3
) and
size (large
, micro
) is a
broker instance type (for example, mq.m5.large
). For more information, see What is an Amazon MQ for ActiveMQ broker?.
Create an ActiveMQ broker
The first and most common Amazon MQ task is creating a broker. The following example shows how you can use the AWS Management Console to create a basic broker.
Sign in to the Amazon MQ console
. -
On the Select broker engine page, choose Apache ActiveMQ.
-
On the Select deployment and storage page, in the Deployment mode and storage type section, do the following:
-
Choose the Deployment mode (for example, Active/standby broker). For more information, see Deployment options for Amazon MQ for ActiveMQ brokers.
-
A Single-instance broker is comprised of one broker in one Availability Zone. The broker communicates with your application and with an Amazon EBS or Amazon EFS storage volume. For more information, see Option 1: Amazon MQ single-instance brokers.
-
An Active/standby broker for high availability is comprised of two brokers in two different Availability Zones, configured in a redundant pair. These brokers communicate synchronously with your application, and with Amazon EFS. For more information, see Option 2: Amazon MQ active/standby brokers for high availability.
-
For more information on the sample blueprints for a network of brokers, see Sample blueprints.
-
-
Choose the Storage type (for example, EBS). For more information, see Storage.
Note
Amazon EBS replicates data within a single Availability Zone and doesn't support the ActiveMQ active/standby deployment mode.
Choose Next.
-
-
On the Configure settings page, in the Details section, do the following:
-
Enter the Broker name.
Important
Do not add personally identifiable information (PII) or other confidential or sensitive information in broker names. Broker names are accessible to other AWS services, including CloudWatch Logs. Broker names are not intended to be used for private or sensitive data.
Choose the Broker instance type (for example, mq.m5.large). For more information, see Broker instance types.
-
-
In the ActiveMQ Web Console access section, provide a Username and Password. The following restrictions apply to broker usernames and passwords:
-
Your username can contain only alphanumeric characters, dashes, periods, underscores, and tildas (- . _ ~).
-
Your password must be at least 12 characters long, contain at least 4 unique characters and must not contain commas, colons, or equal signs (,:=).
Important
Do not add personally identifiable information (PII) or other confidential or sensitive information in broker usernames. Broker usernames are accessible to other AWS services, including CloudWatch Logs. Broker usernames are not intended to be used for private or sensitive data.
-
-
Choose Deploy.
While Amazon MQ creates your broker, it displays the Creation in progress status.
Creating the broker takes about 15 minutes.
When your broker is created successfully, Amazon MQ displays the Running status.
-
Choose
MyBroker
.On the
MyBroker
page, in the Connect section, note your broker's ActiveMQ web consoleURL, for example: https://b-1234a5b6-78cd-901e-2fgh-3i45j6k178l9-1.mq.us-east-2.amazonaws.com:8162
Also, note your broker's wire-level protocol Endpoints
. The following is an example of an OpenWire endpoint: ssl://b-1234a5b6-78cd-901e-2fgh-3i45j6k178l9-1.mq.us-east-2.amazonaws.com:61617