Skip to main content
Question

Deploying functions with toolkit

  • May 28, 2025
  • 1 reply
  • 25 views

When deploying a function with the SDK you can specify the source code “folder” as a parameter. I have used this to deploy the functions with my own python module which is just a directory with some py files. I want to migrate to using the toolkit, but I am not sure how to deploy with the source code folder I want as I do not see a way to specify it in the yaml file.

 

Can anyone help with this? I have multiple Cognite Functions that I want to deploy that all access the same source code I have written.

Thank you!

Sebastian

1 reply

Anders  Albert
Seasoned Practitioner
Forum|alt.badge.img
  • Seasoned Practitioner
  • May 29, 2025

Toolkit expects the function code to be in an adjacent folder named the same as the `externalId` of the function, see https://docs.cognite.com/cdf/deploy/cdf_toolkit/references/resource_library#functions for more details.