Impact 2024: The Industrial Data and AI Conference for and by Users | Nominate Speakers Now for a Ch...
I would suggest using this method to download the file to the /tmp directory from within the function. Once dowloaded you can treat it as a local file and load it.pickled_model = pickle.load(open('/tmp/model.pkl', 'rb'))Assuming this a python pickled model.
@vwrocks8 Is there a known IP that the Cognite Function traffic would be coming from that @Pedersen Jon-Robert would be able to whitelist on his end so that it’s not completely wide open on the internet? I am not aware of what infrastructure you are running on. For example, this is how the firewall rules work with Azure SQL: IP firewall rules - Azure SQL Database and Azure Synapse Analytics | Microsoft Docs Cognite Functions is primarily designed to operate on data in CDF, and at the moment it’s not possible for us to provide a list or a range of ip addresses that a function can use.
Yes, all outgoing traffic is allowed. However your SQL server needs to be publicly available for this to work.
Already have an account? Login
Enter your username or e-mail address. We'll send you an e-mail with instructions to reset your password.
Sorry, we're still checking this file's contents to make sure it's safe to download. Please try again in a few minutes.
Sorry, our virus scanner detected that this file isn't safe to download.