Build Unifi Controller on Amazon Web Server

Set up account in AWS and navigate to EC2 console. Here we will create a new instance, look at the left menu bar for “Instances”. At top right click “Launch Instances”. Following are the Amazon steps to create instance:

Step 1: Chose an AMI – Select Ubuntu Server 20.04 LTS – this should be Free tier eligible.

Step 2: Chose an Instance Type – t2.micro runs Unifi fine with a few sites and devices

Step 3 Configure Instance Details – not much to do here, leave as default

Step 4: Add Storage – use 30gb

Step 5: Add Tags – no need

Step 6: Configure Security Groups – select the group you created

Finish and launch: Chose a key pair you already own

ssh into instance

Update Ubuntu

sudo apt update && sudo apt upgrade

Check java version – remove java if present

java -version

install java 8

sudo apt install openjdk-8-jre-headless

install certs

sudo apt-get install ca-certificates apt-transport-https

add new source list

echo 'deb https://www.ui.com/downloads/unifi/debian stable ubiquiti' | sudo tee /etc/apt/sources.list.d/100-ubnt-unfi.list

add gpg keys

sudo wget -O /etc/apt/trusted.gpg.d/unifi-repo.gpg https://dl.ui.com/unifi/unifi-repo.gpg

hold java 11 install

sudo apt-mark hold openjdk-11-*

update with apt-get and install unifi

sudo apt-get update && sudo apt-get install unifi

Leave a Reply