Skip to main content
Version: v0.13 ๐Ÿšง

Managing Workspace With Kusion Server

When using Kusion server, workspaces are managed via the /api/v1/workspaces API. You can either access the APIs directly or if you have the Dev Portal enabled (--dev-portal-enabled, default to true), workspaces can be managed via the portal. The workspace configurations are also stored in the backends when using Kusion server.

:::Tip There are no "default" workspace when using the Kusion server. A workspace needs to be specified every time an operation (generate/preview/apply/destroy) is triggered. :::

APIsโ€‹

The APIs to manage workspaces can be found in the swagger docs under {server-endpoint}/docs/index.html#/workspace.

Developer Portalโ€‹

Creating Workspaceโ€‹

Create a workspace by clicking on the Create Workspace button in the top right corner.

workspace-create-new

Select the backend to store the workspace configurations.

workspace-select-backend

The Workspaces are generally managed by the platform engineers. We recommend that they are organized by the following rules:

  • SDLC phases, such as dev, pre, prod;
  • cloud vendors, such as aws, alicloud;
  • combination of the two above, such as dev-aws, prod-alicloud.

In design, Kusion does not support deploying Stack to multiple clouds or regions within a single Workspace. While users can technically define a Module that provisions resources across multiple clouds or regions, Kusion does not recommend this practice, and will not provide technical support for such configuration. If the platform engineers need to manage resources across multiple clouds or regions, they should create separate Workspaces.

Listing Workspaceโ€‹

List workspaces by clicking on the Workspace tab.

Showing Workspaceโ€‹

Clicking on individual workspace to display the workspace configurations.

workspace-configurations

Updating Workspaceโ€‹

Update workspaces by clicking on the edit button on each workspace card.

workspace-edit

Deleting Workspaceโ€‹

workspace-delete

Using Workspaceโ€‹

Workspace is used when creating Runs. When creating each run, no matter what type, a workspace must be selected to represent the target environment.

workspace-select