Remote file storage setup with DockerFlowRunner #5953
Unanswered
tanguymartinez
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hello,
I have been trying to set up a remote File Storage so that I can test docker deployments.
For testing, I have set up a local sftp server. I can connect using a specific username/password combination.
I have run the command
prefect storage create
and chosen the option 1).The
base_path
I am using is:sftp://username:password@myipaddress/
. I don't get any error during the setup.The problem arises when I create a deployment:
I understand that the File Storage uses the
fsspec
package.Could you tell me how I can debug the storage created using the prefect cli?
From the docs, it is not clear how one is supposed to pass optional parameters (such as credentials).
The useful bit reads:
but it does not state how.
I stumbled upon this page: https://orion-docs.prefect.io/api-ref/prefect/blocks/storage/#prefect.blocks.storage.FileStorageBlock.
More specifically, in the source code of the
FileStorageBlock
class, there is an attribute calledoptions
which seems to be what I am interested in.I saw that fsspec accepts kwargs parameters for connections (link):
Therefore, is there any way I can pass a dictionary during the creation of new storage ?
I might be going in the wrong direction.
Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions