https://prefect.io logo
a

Adam Roderick

02/11/2022, 6:56 PM
We are using S3Result stores and configure our flow's storage in the constructor like this:
result=3Result(bucket=s3_results_bucket)
The flow's output looks like it is using a default template something like
YYYY/MM/DD/**.prefect_result
. I would like to reuse this bucket across flows and environments, with a template something like
{environment}/{flow_name}/YYYY/MM/DD/**.prefect_result
How can I accomplish this?
k

Kevin Kho

02/11/2022, 6:59 PM
Hey @Adam Roderick, it sounds like this is what you are looking for. Have you seen it? Specifically, template the result location. But I don’t know about environment unless you have it in the context or a parameter or something like that
a

Adam Roderick

02/11/2022, 7:01 PM
Yes! The page I was reading referenced templates but I could not find this page. Thank you
3 Views