Terraform is an infrastructure-as-code (IaC) tool that you can use to provision resources and permissions for Cloud Workstations. To use Terraform with Cloud Workstations, you need to create a configuration file to describe your infrastructure, and then apply the configuration file to create an execution plan and perform operations to provision your infrastructure.
For example, you can use Terraform to create workstations, create various workstation configurations (templates), and create workstation configurations for public or private workstation clusters.
Terraform resources for Cloud Workstations
The following table lists Cloud Workstations configuration samples that appear in the Terraform registry and from GitHub.
Cloud Workstations resource | Terraform registry sample |
---|---|
Cluster | Basic google_workstations_workstation_cluster |
Private google_workstations_workstation_cluster | |
Basic workstation configuration | google_workstations_workstation_config |
Workstation configuration with additional features | From a container: google_workstations_workstation_config |
With persistent directories: google_workstations_workstation_config | |
With shielded instance configuration: google_workstations_workstation_config | |
With customer-managed encryption keys (CMEK) google_workstations_workstation_config | |
Workstation | google_workstations_workstation |
What's next
Learn more about Terraform: