https://prefect.io logo
Title
v

Volker L

03/04/2023, 10:35 AM
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.
"{\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

Christopher Boyd

03/06/2023, 2:42 PM
I’ve seen this before, you might need to json.dumps the content first
something like:
import json

creds = { <content>}
print (json.loads(creds))
and paste that in
1
v

Volker L

03/06/2023, 5:10 PM
I was able to created the remotefilesystem programmatically.
1