I think the environment variables path might work for you then?
You'd set your config withuse_credentials_chain: ${CREDENTIALS_CHAIN}
Then in Python you could os.environ['CREDENTIALS_CHAIN'] = True/False
before you make any calls to ClearML?
I want to set use_credentials_chain
to true, but do not want to change the config file because I am running in cloud and do not want to have to download it each time I run
But AFAIK there's no support for this env var at the moment 🙂
Oh, I get your point now... I guess you're right 😄
Hey StaleButterfly40 ,
I think right now you can only do that by either injecting values to the conf file before importing clearml. Changing the loaded configuration and making sure the values were not already taken from there is not recommended.
If you have any specific use-case, let's discuss it - we can always support an env var very easily.
StaleButterfly40 what use case are you looking for? I've used environment variables in the config file and then I can overwrite them in os.environ
before ClearML loads the config
I thought this follows from our previous discussion SuccessfulKoala55 , where this is a built-in feature of pyhocon?
As a "hack", you can do this:from clearml.storage.helper import StorageHelper StorageHelper._s3_configurations._default_use_credentials_chain = True