https://prefect.io logo
Title
j

jack

04/19/2023, 2:20 PM
Is it normal for files to be written to S3 when a deployment is built? Or are they supposed to be written there when the deployment is applied? This is what I'm seeing:
$ prefect deployment build run.py:main         -n jack-test-3         -ib ecs-task/ecs-block         -sb s3/flow-storage-block         --pool some-pool   --override env.EXTRA_PIP_PACKAGES='prefect-aws s3fs'
Found flow 'main'
Deployment YAML created at 'V:\some-dir\ecs-test-3\main-deployment.yaml'.
Successfully uploaded 2 files to <s3://some-bucket/some-path/>
r

Ryan Peden

04/20/2023, 6:26 AM
I think that's normal unless you use the
--skip-upload
flag.
build
preps the deployment YAML and uploads your files to storage, then
apply
registers the deployment via the Prefect API. You can also do it all in one go by adding the
--apply
flag to your
build
command. Although they're still in beta, Projects provide (IMO) a cleaner deployment experience. Worth giving a try if you haven't checked them out yet. 😄