Self-hosted setup using AWS EC2
This guide walks you through deploying ThingsBoard Professional Edition on an AWS EC2 instance.
For a pre-configured AMI-based deployment, see AWS Marketplace.
Prerequisites
Section titled “Prerequisites”You need admin access to EC2 resources in your AWS account.
Step 1. Create EC2 instance
Section titled “Step 1. Create EC2 instance”Create an EC2 instance using the Amazon user guide. Choose Ubuntu Server 24.04 LTS as the operating system.
Step 2. Configure security group
Section titled “Step 2. Configure security group”Open the following ports in the inbound rules of your instance’s security group:
| Port | Protocol | Description |
|---|---|---|
| 22 | TCP | SSH access |
| 80 | TCP | HTTP access |
| 443 | TCP | HTTPS access |
| 1883 | TCP | MQTT protocol |
| 8883 | TCP | MQTT over SSL |
| 7070 | TCP | Edge RPC service |
| 9090 | TCP | Remote Integration service |
| 5683–5688 | UDP | CoAP and LwM2M protocols |
Step 3. Install ThingsBoard
Section titled “Step 3. Install ThingsBoard”Connect to your instance via SSH and follow the Docker installation guide to install and configure ThingsBoard PE.