Hey team I want to push files to s3 but with dynam...
# questions
v
Hey team I want to push files to s3 but with dynamic names e.g appending a timestamp to the file just to store multiple copies of the file .
dummy_csv:
type: pandas.CSVDataset
filepath: <s3://ml-datawarehouse/warehouse/test.csv>
credentials: dev_s3
Right now, test.csv is being overwritten in S3. Is conf-resolver the answer to this question . I tried resolver like below , but no success yet -
dummy_csv:
type: pandas.CSVDataset
filepath: <s3://ml-datawarehouse/warehouse/test_>"{$today:}".csv
credentials: dev_s3
Copy code
from datetime import date


CONFIG_LOADER_ARGS = {
    "custom_resolvers": {
        "today": lambda: date.today(),
    }
}
1
m
Have you tried using Kedro dataset versioning?
v
@Merel not really, but I know that Versioning might use different timestamps and might help me. Thanks a lot. But still any idea what is the issue here, like Why cannot i utilise the power of resolvers.
@Nok Lam Chan @Laurens Vijnck Any idea on this ?
l
the dollar sign should be outside of the curly braces
🙌 2
v
@Laurens Vijnck Thanks . It was such a silly one. 🙄