Hey team! I'm trying to migrate from agents -> ...
# ask-community
s
Hey team! I'm trying to migrate from agents -> workers and
Deployment.build_from_flow
to
flow.deploy
. Is flow.deploy feature complete? I'm not see how I can specify the flow files are stored in s3 like I can with
storage=s3_block
in
build_from_flow
. Is this method of storing flow code deprecated or no longer supported?
Similar question to my one above, I see now that there is
prefect.runner.storage.RemoteStorage
that you can pull down code, but it doesn't look like there's an analogous
upload
or similar function like the
upload
flag on
Deployment.build_from_flow
j
Hi @Samuel Hinton. S3 storage is supported. See examples here.
s
Hi @Jeff Hale , I might be missing something - but isn't that only download from S3? Using build_from_flow uploads your code into s3 for later use. Does the remotestorage facility provide means to upload code as well?
j
Yeah, there isn’t a push capability directly in
.deploy
. We’ve found that most folks would rather handle their pushing of code as a discrete action outside of the deployment creation - e.g. in their CI/CD process. You can create an S3Bucket block and use it’s
put_directory
method to quickly upload your code. Docs here.
🙏 1