Skip to content

Commit 9d960cd

Browse files
tejal29BBBmau
authored andcommitted
Added maxUsableWorkstations to workstation Config (GoogleCloudPlatform#11908)
Co-authored-by: Mauricio Alvarez Leon <[email protected]>
1 parent d7fa61c commit 9d960cd

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

mmv1/products/workstations/WorkstationConfig.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -656,6 +656,11 @@ properties:
656656
description: |
657657
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.
658658
min_version: 'beta'
659+
- name: 'maxUsableWorkstations'
660+
type: Integer
661+
description: |
662+
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.
663+
default_from_api: true
659664
- name: 'allowedPorts'
660665
type: Array
661666
default_from_api: true

mmv1/templates/terraform/examples/workstation_config_basic.tf.tmpl

+2
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,8 @@ resource "google_workstations_workstation_config" "{{$.PrimaryResourceId}}" {
5858
"label" = "key"
5959
}
6060

61+
max_usable_workstations = 1
62+
6163
host {
6264
gce_instance {
6365
machine_type = "e2-standard-4"

mmv1/third_party/terraform/services/workstations/resource_workstations_workstation_config_test.go.tmpl

+2
Original file line numberDiff line numberDiff line change
@@ -811,6 +811,8 @@ resource "google_workstations_workstation_config" "default" {
811811
labels = {
812812
foo = "bar"
813813
}
814+
815+
max_usable_workstations = 2
814816

815817
lifecycle {
816818
prevent_destroy = true

0 commit comments

Comments
 (0)