Ivan Ksaver Šušnjara
05/24/2023, 12:07 PMChristopher Boyd
05/24/2023, 12:56 PMIvan Ksaver Šušnjara
05/24/2023, 1:00 PMChristopher Boyd
05/24/2023, 1:02 PMI was able to access Prefect UI using a proxy EC2 instance with public IP, which is allowed to send HTTP requests to private IP of the instance Prefect is hosted on. I used following configuration, and everything works great:
prefect config set PREFECT_API_URL='http://<private-ip-of-instance>:4200/api'
prefect config set PREFECT_SERVER_API_HOST='0.0.0.0'
prefect config set PREFECT_API_DATABASE_CONNECTION_URL="postgresql+asyncpg://<user>:<pw>@localhost:5432/prefect"
However, when trying to access 'http://<private-ip-of-instance>:4200/api' directly (without proxy) from corporate network/VPN with the same settings as above, Prefect UI complains it can't communicate with API
Ivan Ksaver Šušnjara
05/24/2023, 1:08 PM