Deployments#
Deployments are methods for sharing parts of your data science projects and machine learning models with other users. You can create deployments for microservices such as interactive dashboard visualizations, web applications, REST APIs, or Jupyter Notebooks.
When you deploy a project, Data Science & AI Workbench finds and builds all of the software dependencies (the packages and libraries the project needs to operate properly) and encapsulates them into a self-contained artifact.
You can create multiple deployments from a single project. Each deployment can be a different version and can be shared with others.
Deployment commands#
Deployments are defined as commands in your anaconda-project.yml
file. Each project in Workbench can define any number of deployable commands. See Adding deployment commands to a project for more information.
Viewing all deployments#
Select Deployments from the left-hand navigation to view a list of deployments across all projects you own or that have been shared with you.
Viewing a project’s deployments#
To view the deployments specific to a project:
Deploying a project#
Deployments are run independently of development sessions for projects, and can be deployed to different hardware resource profiles.
From the Projects page, select the project you want to deploy.
Select Deployments from the left-hand menu.
Click Deploy.
Enter a name for your deployment.
Select a resource profile to run your deployment.
Note
The configurations present in this dropdown are controlled by your Administrator. Check with them if you are unsure which profile to choose.
Select the project version associated with the deployment command you are running.
Select a deployment command.
Caution
If there is no deployment command listed, you cannot deploy your project.
Set the URL for your deployment.
Note
This is the URL you’ll use to access your deployment from a web browser, and therefore it must be unique. Toggle Static URL
OFF
if you want Workbench to automatically generate a URL for your deployment.Share your deployment with any other users or groups.
Set your deployment to private or public access:
- Private access
Restricts access to authenticated platform users only. Private deployments display a lock icon to indicate their secure status.
- Public access
Opens access to non-authenticated users.
Click Deploy.
Note
It can take several minutes to obtain and build all the dependencies for the project deployment.
You can also schedule a project to be deployed on a regular basis or at a specific time. For more information, see Scheduling deployments.
Interacting with deployments#
To interact with your deployment, select it from the list of project deployments, or navigate to its URL in a web browser.