Skip to content

Commit

Permalink
Added maxUsableWorkstations to workstation Config (GoogleCloudPlatfor…
Browse files Browse the repository at this point in the history
…m#11908)

Co-authored-by: Mauricio Alvarez Leon <[email protected]>
  • Loading branch information
tejal29 and BBBmau authored Oct 15, 2024
1 parent 4cabc2c commit a8e718b
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions mmv1/products/workstations/WorkstationConfig.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -656,6 +656,11 @@ properties:
description: |
Disables support for plain TCP connections in the workstation. By default the service supports TCP connections via a websocket relay. Setting this option to true disables that relay, which prevents the usage of services that require plain tcp connections, such as ssh. When enabled, all communication must occur over https or wss.
min_version: 'beta'
- name: 'maxUsableWorkstations'
type: Integer
description: |
Maximum number of workstations under this configuration a user can have workstations.workstation.use permission on. Only enforced on CreateWorkstation API calls on the user issuing the API request.
default_from_api: true
- name: 'allowedPorts'
type: Array
default_from_api: true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,8 @@ resource "google_workstations_workstation_config" "{{$.PrimaryResourceId}}" {
"label" = "key"
}

max_usable_workstations = 1

host {
gce_instance {
machine_type = "e2-standard-4"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -811,6 +811,8 @@ resource "google_workstations_workstation_config" "default" {
labels = {
foo = "bar"
}

max_usable_workstations = 2

lifecycle {
prevent_destroy = true
Expand Down

0 comments on commit a8e718b

Please sign in to comment.