Venkat Ramakrishnan
09/08/2022, 5:07 PMJeff Hale
09/08/2022, 5:23 PMShould I do ‘pip install prefect’ anymore? If not and if prefect cloud takes care of it, how then would the Python program know about the ‘Deployment’, i.e. where do I import ‘Deployment’ from?You do need to have Prefect installed in which ever environment is running your flows. So if your agent is running in ECS or a Docker container or locally you do need Prefect installed in that environment.
Or should I stop the Python part altogether and schedule the deployment from Prefect Cloud? If yes, I presume that in the Prefect Cloud, I will have to specify the script that needs to be run at the scheduled time? In this case, my script will exist in an AWS EC2 instance, how do I give access to it to the Prefect Cloud?You can schedule the deployment from the Prefect Cloud UI, or the Python Deployment script. You probably want the flow code script to be run to live in an S3 bucket. You can create an S3 block from the Prefect Cloud UI under Blocks and then just make sure you pip install s3fs when you create your deployment and follow the example in the docs.
Venkat Ramakrishnan
09/08/2022, 5:32 PMJeff Hale
09/08/2022, 5:37 PMprefect orion start
if you’re using Prefect Cloud. Either you do prefect orion start
to start a server in your environment OR you use Prefect Cloud.Venkat Ramakrishnan
09/08/2022, 5:46 PM