Set up workstations

Learn how to set up and use workstation clusters, workstation configurations,and workstations. Check the prerequisites for this quickstartbefore you begin,and then follow these steps:

  1. Create a workstation cluster
  2. Create a workstation configuration
  3. Create and launch a workstation

If you no longer need the resources created in this quickstart,make sure that youclean up to avoid incurring extra costs.


To follow step-by-step guidance for this task directly in the Google Cloud console, clickGuide me:

Guide me


Before you begin

This guide covers steps for administrators to set up Cloud Workstations and for developers to use the workstations.

To set up Cloud Workstations, complete the following steps:

  1. Sign in to your Google Cloud account. If you're new to Google Cloud, create an account to evaluate how our products perform in real-world scenarios. New customers also get $300 in free credits to run, test, and deploy workloads.
  2. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.create permission.Learn how to grant roles.
    Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.

    Go to project selector

  3. If you're using an existing project for this guide,verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.

  4. Verify that billing is enabled for your Google Cloud project.

  5. In the Google Cloud console, on the project selector page, select or create a Google Cloud project.

    Roles required to select or create a project

    • Select a project: Selecting a project doesn't require a specific IAM role—you can select any project that you've been granted a role on.
    • Create a project: To create a project, you need the Project Creator role (roles/resourcemanager.projectCreator), which contains theresourcemanager.projects.create permission.Learn how to grant roles.
    Note: If you don't plan to keep the resources that you create in this procedure, create a project instead of selecting an existing project. After you finish these steps, you can delete the project, removing all resources associated with the project.

    Go to project selector

  6. If you're using an existing project for this guide,verify that you have the permissions required to complete this guide. If you created a new project, then you already have the required permissions.

  7. Verify that billing is enabled for your Google Cloud project.

  8. Enable the Cloud Workstations API.

    Roles required to enable APIs

    To enable APIs, you need the Service Usage Admin IAM role (roles/serviceusage.serviceUsageAdmin), which contains theserviceusage.services.enable permission.Learn how to grant roles.

    Enable the API

Required roles

To get the permissions that you need to manage and use workstations, ask your administrator to grant you the following IAM roles:

  • Create and manage workstation clusters and configurations:Cloud Workstations Admin (roles/workstations.admin) on the project
  • Create workstations using a configuration:Cloud Workstations Creator (roles/workstations.workstationCreator) on the project or the workstation configuration
  • Use a workstation:Cloud Workstations User (roles/workstations.user) on the workstation. This is automatically granted on workstations you create.

For more information about granting roles, seeManage access to projects, folders, and organizations.

You might also be able to get the required permissions throughcustom roles or otherpredefined roles.

For a detailed overview of all Cloud Workstations roles, seeAccess control with IAM.

Create a workstation cluster

The first step is to create aworkstation cluster.Workstation clusters define a group of workstations in a particular region,manage workstations during their lifecycle, and provide configurablenetwork connectivity.

Workstation clusters aren't related to Google Kubernetes Engine (GKE) clusters.To create a workstation cluster, follow these steps:

  1. In the console,navigate to theCloud Workstations >Cluster management page.

    Go to Cluster management

  2. From the workstationsCluster management page, clickadd_boxCreate.

  3. In theName field, entertest-cluster as the name of yourworkstation cluster.

  4. Select theRegion that is closest to you.

  5. Skip theNetwork settings.

  6. ClickCreate, which begins the cluster creation process.

Workstation cluster creation can take up to 20 minutes, but in mostcases is only needed once.

Create a workstation configuration

This quickstart takes you through the most basic workstation configuration.To get started quickly, accept the defaults for defining machine settings,for customizing the environment, and for adding users.

To configure the basics of a workstation configuration, follow these steps:

  1. In the console,navigate toCloud Workstations >Workstation configurations.

    Go to Workstation configurations

  2. From theWorkstation configurations page, clickadd_boxCreate.

  3. In theName field, entertest-configuration as the name of yourworkstation configuration.

  4. Choosetest-cluster from the list of available workstationClustersand clickContinue.If no workstation cluster is available, make sure that you completed the steps to=Create a workstation cluster.

  5. ForQuick start workstations, selectDisabled for lower cost.

  6. If you were customizing a workstation configuration for your team, you mightdefineMachine settings, customizeEnvironment settings, and addusers to theIAM policy. For this exercise, you can skip those steps.

  7. To create your workstation configuration, clickCreate.

For more information about creating a workstation configuration with the optionsthat were skipped in this quickstart, see the detailed section aboutworkstation configurations.

Create and launch a workstation

A workstation is a preconfigured development environment thatadministrators or platform teams define in a workstation configuration.To create a workstation, follow these steps:

  1. In the Google Cloud console, navigate to theCloud Workstations >Workstationspage.

    Go to Workstations

  2. Clickadd_boxCreate.

    TheCreate link might be disabled if there aren't anyworkstation configurations in the project or if you don't have permissionsto view them.Ask your organization's Cloud Workstations Admin to create aworkstation configuration for you.

  3. Accept the default workstationName.

  4. Click thearrow_drop_downexpanderarrow in theConfiguration field and select theworkstation configuration to define your workstation.For example, if you named your workstation configurationtest-configuration in the prior step, select that from the list.

  5. ClickCreateto create your workstation.

Now that you have created a workstation, you can start it and then launch itto begin development:

  1. ClickWorkstations.
  2. Find the workstation that you created in the list of available workstations,select the checkbox beside it, and then clickStart. This starts yourworkstation, and matches it to the parent workstation configuration.
  3. If prompted to start your workstation, clickStart to confirm.The status changes toStarting and the status iconrefreshspins while the startoperation is in progress. It might take a few minutes to start yourworkstation.
  4. When your workstation is ready, the status changes toRunning and thestatus icon changes to acheck_circle checkmark.
  5. ClickLaunch. The workstation connects to port80 by default.

  6. The following example shows the welcome page for the Cloud Workstationsbase editor.Your page might look different, depending on how you define yourworkstation configuration:

    Cloud Workstations base editor

    For more information about connecting through SSH, seeSSH support.

    For more information about connecting to web apps running on yourworkstation, seeAccess HTTP servers running on a workstation.

Clean up

To avoid incurring charges to your Google Cloud account for the resourcesused on this page, make sure that you delete resources that you no longer need.

To delete a Google Cloud project from the Google Cloud console or from thegcloud CLI:

Console

    Caution: Deleting a project has the following effects:
    • Everything in the project is deleted. If you used an existing project for the tasks in this document, when you delete it, you also delete any other work you've done in the project.
    • Custom project IDs are lost. When you created this project, you might have created a custom project ID that you want to use in the future. To preserve the URLs that use the project ID, such as anappspot.com URL, delete selected resources inside the project instead of deleting the whole project.

    If you plan to explore multiple architectures, tutorials, or quickstarts, reusing projects can help you avoid exceeding project quota limits.

  1. In the Google Cloud console, go to theManage resources page.

    Go to Manage resources

  2. In the project list, select the project that you want to delete, and then clickDelete.
  3. In the dialog, type the project ID, and then clickShut down to delete the project.

gcloud

For more information about deleting other resources,such as workstation clusters, workstation configurations, and workstations,seeDelete resources.

What's next

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2026-02-19 UTC.