Skip to content

Commit f262963

Browse files
Set disbaleSsh default value to true for workstation create (#11225) (#7946)
[upstream:f1026bb86e56a759df42d1877d46e4b366be8247] Signed-off-by: Modular Magician <[email protected]>
1 parent d064e29 commit f262963

File tree

3 files changed

+11
-1
lines changed

3 files changed

+11
-1
lines changed

Diff for: .changelog/11225.txt

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
```release-note:breaking-change
2+
workstation: `host.gce_instance.disable_ssh` now defaults to true for `google_workstations_workstation_config`
3+
```

Diff for: google-beta/services/workstations/resource_workstations_workstation_config.go

+2-1
Original file line numberDiff line numberDiff line change
@@ -355,6 +355,7 @@ See https://cloud.google.com/workstations/docs/reference/rest/v1beta/projects.lo
355355
Type: schema.TypeBool,
356356
Optional: true,
357357
Description: `Whether to disable SSH access to the VM.`,
358+
Default: true,
358359
},
359360
"enable_nested_virtualization": {
360361
Type: schema.TypeBool,
@@ -2008,7 +2009,7 @@ func expandWorkstationsWorkstationConfigHostGceInstance(v interface{}, d tpgreso
20082009
transformedDisableSsh, err := expandWorkstationsWorkstationConfigHostGceInstanceDisableSsh(original["disable_ssh"], d, config)
20092010
if err != nil {
20102011
return nil, err
2011-
} else if val := reflect.ValueOf(transformedDisableSsh); val.IsValid() && !tpgresource.IsEmptyValue(val) {
2012+
} else {
20122013
transformed["disableSsh"] = transformedDisableSsh
20132014
}
20142015

Diff for: website/docs/guides/version_6_upgrade.html.markdown

+6
Original file line numberDiff line numberDiff line change
@@ -322,6 +322,12 @@ on the resource through Terraform and the default labels configured on the provi
322322
* The new output-only `effective_labels` field lists all of labels present on the resource
323323
in GCP, including the labels configured through Terraform, the system, and other clients.
324324

325+
## Resource: `google_workstations_workstation_config`
326+
327+
### `host.gce_instance.disable_ssh` now defaults to true
328+
329+
* `disable_ssh` field now defaults to true. To enable SSH, please set `disable_ssh` to false.
330+
325331
## Removals
326332

327333
### Resource: `google_identity_platform_project_default_config` is now removed

0 commit comments

Comments
 (0)