Hello. I have a question. I want to deploy my flow...
# prefect-community
e
Hello. I have a question. I want to deploy my flow in local subprocess from my VM hosted in AWS. The flow code is on my local computer with all the dependencies. When I execute the command "prefect deplyment buid ..." in my local computer with s3 as my block , should I normally start the agent on my VM in AWS. How to configure the agent so that before executing my flow on my VM, he will install the dependicies required. I read this article on how to deploy prefect 2 on AWS but it doesn't mentioned how the agant will execute the flow. Does the agent install dependicies before running the task inside the flow ? Here is the link https://discourse.prefect.io/t/how-to-deploy-prefect-2-0-flows-to-aws/1252
k
if you are running your agent on an VM in AWS and your code is uploaded to s3 with the s3 block, here are the steps to get your agent running on your VM: • install prefect • log in to Prefect Cloud • run prefect agent and that’s all you need. You don’t need to install the the requirements for the flow in advance
e
@Khuyen Tran How the agent will execute the flow if the dependencies are not already installed in the VM. When the agent picks up the flow, normally the deployment file contains some dependencies required in other to execute the flow. The dependencies must first be installed. But how the agent will do that if we do not configure in advance ? How it works ?
k
I just asked the team agent, and it seems like you still need to install the dependencies necessary for the flow to run in the environment the agent is executed on. Sorry for that
e
ok.