Ben Shaughnessy
02/10/2025, 5:51 PMHall
02/10/2025, 5:51 PMdatajoely
02/10/2025, 5:56 PMdatajoely
02/10/2025, 5:56 PMdatajoely
02/10/2025, 5:56 PMElena Khaustova
02/10/2025, 6:09 PMMatthias Roels
02/10/2025, 6:42 PM${globals:file_system}://${globals:prefix}/…
where file system is s3
in prod and file
for local testingBen Shaughnessy
02/10/2025, 6:58 PMkedro run
should be whatever default env is (in my project it would be local) but kedro run --env production
should be production
this may be off topic and worth a new thread, but its important as I want to still leverage the local filesystem when developing locally.datajoely
02/10/2025, 6:59 PMdatajoely
02/10/2025, 6:59 PMBen Shaughnessy
02/10/2025, 7:00 PM# settings.py
if env=='local':
pass
elif env in ('production', 'staging'):
change_catalog_filepaths()
Ben Shaughnessy
02/10/2025, 7:00 PMchange_catalog_filepaths()
is working and doing exactly what I want, I just don't know of a non hacky way to access env in settings.pydatajoely
02/10/2025, 7:01 PMdatajoely
02/10/2025, 7:01 PMdatajoely
02/10/2025, 7:01 PMBen Shaughnessy
02/10/2025, 7:01 PMdatajoely
02/10/2025, 7:01 PMdatajoely
02/10/2025, 7:03 PMdatajoely
02/10/2025, 7:03 PMdatajoely
02/10/2025, 7:03 PMBen Shaughnessy
02/10/2025, 7:03 PMlen(OmegaConfigLoader(conf_source='conf/', **CONFIG_LOADER_ARGS).get('catalog').items())
is 53 in settings.py but thats before the dataset factories get resolved into their own unique entriesdatajoely
02/10/2025, 7:04 PMdatajoely
02/10/2025, 7:04 PMdatajoely
02/10/2025, 7:04 PMdatajoely
02/10/2025, 7:05 PMdatajoely
02/10/2025, 7:05 PMBen Shaughnessy
02/10/2025, 7:08 PMdatajoely
02/10/2025, 7:24 PMKEDRO_ENV
environment variable?
• use an omegaconf resolver to inject the variable in the filepath
• kedro will select the right environment based on this
• You can also do before_command_run hook to set the env var if you drive it by the CLIMatthias Roels
02/10/2025, 7:28 PMdatajoely
02/11/2025, 12:09 AMBen Shaughnessy
02/11/2025, 7:28 PMBen Shaughnessy
02/18/2025, 8:25 PMMatthias Roels
02/19/2025, 5:33 PMfilepath: ${globals:filesystem}/${globals:bucket}/…
With filesystem either s3://
or ./data
and bucket the name of your S3 bucket or a subfolder of data to your choosing