Hello, For Prefect 1.0 there was documentation wi...
# prefect-ui
j
Hello, For Prefect 1.0 there was documentation with some resources for the different kind of remote Agents: Docker, ECS, ... For Prefect 2.0 I do not see here if there are different alternatives for remote agents. Is there any tutorial or similar where is shown how to launch a remote agent? Preferably if it is listening to a Deployment scheduled in Prefect Cloud. Thanks in advance!
o
Hey, I believe there is now only one type of agent, it's instead the deployment itself that tells the agent what it needs to do in order to run the contents of the deployment.
👍 1
Of course the agent needs to know whether it should listen to a cloud or non-cloud work queue, as well. But beyond that, there isn't much to configure on the agent side of things.
c
Oscar is correct, there is one type of agent and a new concept “infrastructure” that dictates how the tasks are processed. Relevant spots in code: https://github.com/PrefectHQ/prefect/blob/main/src/prefect/agent.py#L154 https://github.com/PrefectHQ/prefect/tree/main/src/prefect/infrastructure Currently there is Process (LocalProcess), Docker (run in a local docker container), Kubernetes (launches a Kube job and waits on it, monitoring the status). I hear word there soon may be an ECS agent
j
@Oscar Björhn @Cole Murray Thanks for the information! I will look deeper into the "infrastructure". Since now there is no explicit remote agents do you know a simple way to have an agent running on the cloud? optimally with something that could be initiated easily via Terraform. I saw this (but has too many manual steps), and this (but it does not work in Prefect 2.0 yet)