Self-hosted setup using AWS EC2
This guide walks you through deploying ThingsBoard Community Edition on an AWS EC2 instance.
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 |
| 5683 | UDP | CoAP protocol |
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.