https://prefect.io logo
m

Mauricio Duarte Fiallos

07/06/2023, 1:45 PM
How does prefect works, can I install it into aws ecs and manage it my own? I'm confused because I've seen that you will have to use the prefect cloud api and what you install is the agent to run the flows. Is this correct or I'm grown?
โœ… 1
c

Chris Reuter

07/06/2023, 1:57 PM
HI Mauricio - you can run
prefect server start
and manage a Prefect server on your own. This would replace the Cloud API, but you wouldn't have some of the Prefect Cloud unique features/capabilities. For more details see here, specifically the section titled "A locally hosted open-source Prefect server".
๐Ÿ‘๐Ÿป 1
m

Mauricio Duarte Fiallos

07/06/2023, 3:05 PM
This message contains interactive elements.
j

jawnsy

07/06/2023, 3:11 PM
prefecthq/prefect
is the image to use,
prefecthq/server
is for the Prefect v1 server
๐Ÿ™๐Ÿป 1
๐Ÿ™ 1
m

Mauricio Duarte Fiallos

07/06/2023, 3:51 PM
thanks @jawnsy, I downloaded the image and tried to run it from my local but have no idea about the parameters/env vars What should be the docker run command for this image i tried this one docker run -d -p 4200:4200 prefecthq/prefect
j

jawnsy

07/06/2023, 3:55 PM
that will run the default entrypoint, you want something like:
docker run --rm -it -p 4200:4200 prefecthq/prefect:2-latest prefect server start
Thereโ€™s a guide here: https://docs.prefect.io/2.10.18/host/