Brian Phillips
09/29/2021, 4:16 PMflow
object without having MY_BUCKET
secret available (e.g. for generating documentation), while still materializing the config correctly when the flow is run or registered. Curious if anyone has seen similar use cases or solutions?
from prefect.client import Secret
from prefect.storage import S3
from lazy_object_proxy import Proxy
flow = Flow(
...,
storage=Proxy(lambda: S3(Secret('MY_BUCKET').get())),
)