Hi guys, I configured a RemoteFilesystem Block in the UI. I´ve copied my credentials as a dictionar...
v
Hi guys, I configured a RemoteFilesystem Block in the UI. I´ve copied my credentials as a dictionary into the settings box. After saving it is formatted in the following way, and when starting a flow, prefect isn´t able to read the settings correctly.
Copy code
"{\n  \"key\": \"my_access_key\",\n  \"secret\": \"my_super_secret_secret\",\n  \"client_kwargs\": {\n    \"endpoint_url\": \"<https://123456abcdefg.r2.cloudflarestorage.com>\"\n  },\n  \"s3_additional_kwargs\": {\n    \"ACL\":\"private\"\n },\n}"
Is this a bug in the UI, or is there any “trick” to avoid this?
c
I’ve seen this before, you might need to json.dumps the content first
something like:
Copy code
import json

creds = { <content>}
print (json.loads(creds))
and paste that in
1
v
I was able to created the remotefilesystem programmatically.
1