Postwithads

Setup a Cloud Workstations Playground using Terraform

I wrote recently on the official Google Cloud blog about how I helped one of Germany’s biggest banks improve their Developer Experience using Cloud Workstations.

Cloud Workstations are preconfigured development environments hosted in the cloud. They provide developers with a consistent, scalable, and secure workspace to build and test applications. Think of them as virtual machines (VMs) tailored specifically for development, with additional features and benefits.

Key Features and Benefits

  • On-demand access: Start and stop workstations as needed, saving costs.  
  • Scalability: Adjust resources (CPU, RAM, storage) based on project requirements.  
  • Security: Benefit from Google Cloud’s robust security measures to protect your code and data.  
  • Collaboration: Share workstations with team members for efficient development.  
  • Integration: Seamlessly integrate with other Google Cloud services like Cloud Storage, BigQuery, and Kubernetes.
  • Customization: Create custom workstations with specific tools and configurations.

For those who want to take home these advantages, I have created a terraform script to help you get started. You can find the code here. This will provide you with all the necessary setup (Network, Cluster, Config etc.) to start and use your Workstation. The script runs for around 20-25 minutes to create all the resources and outputs two Workstations: one with VSCode and the other with Intellij, as the primary IDE.

The VS Code Workstation can directly be launched in the browser, whereas in order to launch the Intellij Workstation, you’d need to use JetBrains Gateway. The whole process is defined here.

Next Steps

Customize your workstations specific to your own requirements

Connect to your workstation using SSH

This post is licensed under CC BY 4.0 by the author.