Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add maxUsableWorkstations to google_workstations_workstation_config resource #19623

Comments

@mcinquin
Copy link

mcinquin commented Sep 25, 2024

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request.
  • Please do not leave +1 or me too comments, they generate extra noise for issue followers and do not help prioritize the request.
  • If you are interested in working on this issue or have submitted a pull request, please leave a comment.
  • If an issue is assigned to a user, that user is claiming responsibility for the issue.
  • Customers working with a Google Technical Account Manager or Customer Engineer can ask them to reach out internally to expedite investigation and resolution of this issue.

Description

According to the Google Cloud Workstation API reference, there is a new field in the WorkstationConfig object to add a limit the number of Cloud Workstations a user can create.

maxUsableWorkstations is a integer to fix the maximum number of Cloud Workstation a user can create.

Currently, this field is missing from the related Terraform resource.

New or Affected Resource(s)

  • google_workstations_workstation_config

Potential Terraform Configuration

resource "google_workstations_workstation_config" "default" {
  provider                        = google-beta
  workstation_config_id  = "workstation-config"
  workstation_cluster_id = google_workstations_workstation_cluster.default.workstation_cluster_id
  location                        = "us-central1"

  max_usable_workstations = 2

  host {
    gce_instance {
      machine_type                        = "e2-standard-4"
      boot_disk_size_gb                 = 35
      disable_public_ip_addresses = true
      enableNestedVirtualization  = true
      shielded_instance_config {
        enable_secure_boot = true
        enable_vtpm            = true
      }
    }
  }

  persistent_directories {
    mount_path = "/home"
    gce_pd {
      size_gb                = 200
      source_snapshot = "projects/{{project}}/global/snapshots/{{name}}"
      reclaim_policy     = "DELETE"
    }
  }
}

References

https://cloud.google.com/workstations/docs/reference/rest/v1/projects.locations.workstationClusters.workstationConfigs#WorkstationConfig.FIELDS.max_usable_workstations

b/371624626

Copy link

I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues.
If you have found a problem that seems similar to this, please open a new issue and complete the issue template so we can capture all the details necessary to investigate further.

@github-actions github-actions bot locked as resolved and limited conversation to collaborators Nov 15, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.