Greg Roche
09/04/2020, 3:57 PMserver). I'm now trying to set up an agent on my local machine which would be able to communicate with the server on EC2, so I can execute and monitor the flow from the UI.
When I try to run prefect agent start local --api <http://my.ec2.prefect.ip:4200/graphql> on my local machine, it fails with No agent API token provided . In the server UI I don't see any options to create tokens and if I try to run prefect auth create-token it fails with Error: Auth commands with server are not currently supported , I guess because generating tokens is a Cloud-only feature.
So my question is: how would I be able to set up a relationship between my local machine, where the flow would be running, and the server, without using Prefect Cloud? If that's not possible, would I be able to have the flow present on the same machine as the server and just use flow.register(project_name="project_name_in_prefect_server") in my flow script to have it managed by the server, or are there more steps involved?josh
09/04/2020, 4:04 PMcloud. You mentioned that you have your backend set to server but could you verify that again?Greg Roche
09/04/2020, 4:14 PMprefect backend server and restarted the server, and I'm still getting the same errors when running prefect auth create-token on the server and prefect agent start local --api <http://my.ec2.prefect.ip:4200/graphql> on my local machine.josh
09/04/2020, 4:18 PMauth commands only work against Cloud and you shouldn’t need to call them. On your local machine are you also calling prefect backend server?Greg Roche
09/04/2020, 4:34 PMflow.register("foo") and then start the local agent with prefect agent start local --api <http://my.ec2.prefect.ip:4200/graphql> --label foo and the server will start tracking the flow through that agent?josh
09/04/2020, 4:57 PMGreg Roche
09/07/2020, 8:11 AM