Jean-Michel Provencher

12/05/2022, 6:48 PM
Quick question, do you plan on allowing to an additional properties when creating a deployment in Prefect 2 that would target a directory for the upload. Currently this seems quite limiting to only have the possibility to upload the current folder and ignore files based on the .prefectignore file. I see a dirty workaround of people actually uploading the whole directory on the first deployment creation, and then ignoring uploading for following deployments command. Ideally I would like to have the option to target specific files/folder for the upload.
Also .prefectignore does not seem to support "*" wildcards

Rob Freedy

12/06/2022, 4:18 PM
Hey @Jean-Michel Provencher!! At the moment, there is no flag to specify exact files to upload to remote storage. There is the
flag which will skip uploading all of the files to remote storage. You can submit a feature request for specifying files here: The prefect ignore file has the same syntax as a gitignore file, which should support wildcards: