Has there been any discussion of writing Prefect b...
# prefect-cloud
d
Has there been any discussion of writing Prefect blocks into configuration files? We can reference them in
prefect.yaml
, but actually managing them occurs solely within the UI or scripts.
n
hi @Dominic Tarro - what sort of use case do you have in mind? by design, blocks are written to the database, but they are effectively just fancy pydantic models, so one could easily write them to whatever format would be helpful if they had a reason to
d
We've been consolidating and standardizing much of our infrastructure, which conceptually we lump blocks into. Right now we have a bunch of scripts with the block definitions in them, but 99% of those only use string literals and environmental variables. Some blocks load an external JSON file. It seems natural for blocks to be persisted in a non-python configuration file like
prefect.yaml
or a separate file that can be passed as an argument to the prefect CLI.