Skip to content

Feature: Duplicate workspace #9923

Closed
@BrunoQuaresma

Description

@BrunoQuaresma

Extracted from user conversation

I find myself wanting to launch new workspaces where the configuration (i.e. input params) is nearly identical to a workspace that already exists.

One scenario: workspace in us-east-1, but there are aws issues, so now I want to relaunch a similar workspace in us-west-2 with all the same inputs (i.e. repo configuration, instance size, etc.).

I have to manually copy all the workspace settings to a new workspace, which is a tad tedious.

Possible solutions

In the UI we could have:

  • A button called “Duplicate” or “Clone” on the workspace page
  • When clicking on the button, it will display a dialog with a form to override, if the user wants, the workspace settings
  • Confirming, will create a new workspace with the new/overridden settings

In the CLI:
We could do something similar, coder duplicate [some-user.]some-workspace and it would operate like coder create -t template but with all the defaults populated from the source workspace

Metadata

Metadata

Labels

cliArea: CLIsiteArea: frontend dashboard

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions