You can use our AMI which is registered in the AWS Marketplace under the name Supabase Realtime.
Once the instance is up and running, you first need to point Realtime to listen to your PostgreSQL database. First, SSH to the instance, and edit
You'll see some environment variables you need to set. If you use our Supabase Postgres AMI, you simply need to set
DB_HOST to the Postgres instance's public IP,
DB_PASSWORD to the password you set with
\password postgres, and
SECRET_KEY_BASE to a randomly generated secret which you can get by running the command below:
Now you need the Realtime service to use the newly set environment variables:
You can now disconnect from SSH. Now you should be able to visit your Realtime endpoint at
http://your_realtime_ip:4000 and receive the greeting page, which means you're ready to subscribe to changes to your database with Realtime!
Build from Scratch
Make sure you have Packer installed.
Set your AWS security credentials (you can create these here):
Run Packer on
Launch an instance from the image created by Packer, and follow the steps in Quick Install.