Hosting a Remote Orion instance on a cloud VM

These instructions are accurate as of Prefect 2.0b5

  1. Create a VM on Cloud Provider of Choice
  2. Open port 4200 ingress on the VM from 0.0.0.0/0 (all traffic) as well as HTTP in.
  3. pip install prefect 2.0
  4. Set the UI_API_URL with :
prefect config set PREFECT_ORION_UI_API_URL="http://<external-ip>:4200/api"
  1. Start Orion with:
prefect orion start --host 0.0.0.0
  1. From local machine, configure to hit the API with:
prefect config set PREFECT_API_URL="http://<external-ip>:4200/api"
  1. The remote UI will be visible on :4200/

Hey folks,
I implemented and then made this architecture flow of how the hosting works. Hope this helps someone. Please feel free to reach out to me at akshit.miglani09@gmail.com if you need the .io file or have any suggestions.

2 Likes

Awesome diagram, thanks sharing!