I am using a library that has a function like the below, where it expects a file location. The thing is, I store the content of this file in AWS so I can just use AWS api to securely return values I have stored in that resource as a string. How can I transform this string value to be able to pass in a function that is looking for file path - without actually just writing the string values to the local directory as .txt for json file? (I know I can convert the string to a json object but not certain as to how this solves the fact this function is looking for a path) function below:
file_location = 'String values I get returned when I return it from its safe and secure location'
password = credential_function.from_kefile_name(file_location)