Skip to content

Run HiveMQ on AWS

Quick-Launch AWS EC2 Installation for Running HiveMQ

Deploy a HiveMQ instance with ease on AWS EC2 by using our pre-built AMIs. This convenient installation sets up a fully operational HiveMQ AWS EC2 instance with the sizing of your choice on your AWS account. You do not need to provide any AWS credentials for this installation, as this triggers the standard EC2 AWS web console dialog in your web browser and no data is transmitted to us.

2

Choose an EC2 Instance Type

The first step is to choose an appropriate instance size for your EC2 instance.

In order to fulfill the minimum requirements for HiveMQ, please use a m5.xlarge or c5.xlarge instance.

Chose an EC2 Instance Type

3

Configure Instance Details

Now you need to configure your EC2 instance details. Typically you can use the defaults here.

Configure your EC2 instance details

4

Add Storage

The storage configuration should not be below 20GB and more than 100GB are recommended for production deployments.

Add storage where the configuration should not be below 20GB and more than 100GB are recommended for production deployments.

5

Add Tags

Tags are optional but are useful for adding metadata to your instance. You can add a Name tag so you can identify the launched instance at a later point of time within your AWS web console.

Add Tags to the Instance

6

Configure Security Groups to Safegaurd MQTT Communication

In order to make your HiveMQ instance accessible to your MQTT clients, it's important to expose the port 1883. If you want to have it accessible over the Internet, you should use the anywhere as Source. In order to access the HiveMQ Control Center, please configure port 8080 in your security group. If you want SSH access to your machine, make sure to also add a SSH rule.

Please make sure that the HiveMQ Control Center port 8080 and port 22 are only accessible from your IP address or trusted IP addresses. They should never be accessible over the Internet.

Safegaurding MQTT Communication while Running HiveMQ on AWS

7

Launch AMI and Try Out

Now you are ready to launch the AMI. Click the blue Launch button and wait for the EC2 instance to launch. This typically takes a few minutes.

Navigate to your EC2 Instance Overview and find the address of your newly spawned EC2 instance with HiveMQ.

Launch AMI

HiveMQ MQTT Broker Control Center

Try it out

Navigate with your browser to http://YOURIP:8080 (using the address you found in step 7) and open the HiveMQ Control Center. If the HiveMQ Control Center is available, HiveMQ is up and running.

You can login with the default credentials:
User: admin
Password: hivemq

Any MQTT client can be connected to HiveMQ on port 1883 now.

HiveMQ logo
Review HiveMQ on G2