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

feat: added new field vm_tags to the workstation config #18588

Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions .changelog/11015.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
```release-note:REPLACEME
Added new field vm_tags to the workstation config

```
29 changes: 29 additions & 0 deletions website/docs/r/workstations_workstation_config.html.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,24 @@ To get more information about WorkstationConfig, see:


```hcl
resource "google_project" "project" {
project_id = ""
name = ""
org_id = ""
}

resource "google_tags_tag_key" "tag_key1" {
provider = "google-beta"
parent = "organizations/"
short_name = "tag_key1"
}

resource "google_tags_tag_value" "tag_value1" {
provider = "google-beta"
parent = "tagKeys/${google_tags_tag_key.tag_key1.name}"
short_name = "tag_value1"
}

resource "google_compute_network" "default" {
provider = google-beta
name = "workstation-cluster"
Expand Down Expand Up @@ -93,6 +111,9 @@ resource "google_workstations_workstation_config" "default" {
boot_disk_size_gb = 35
disable_public_ip_addresses = true
disable_ssh = false
vm_tags = {
"tagKeys/${google_tags_tag_key.tag_key1.short_name}" = "tagValues/${google_tags_tag_value.tag_value1.short_name}"
}
}
}
}
Expand Down Expand Up @@ -728,6 +749,14 @@ The following arguments are supported:
A list of the boost configurations that workstations created using this workstation configuration are allowed to use.
Structure is [documented below](#nested_boost_configs).

* `vm_tags` -
(Optional)
Resource manager tags to be bound to the VM instances backing the Workstations.
Tag keys and values have the same definition as
https://cloud.google.com/resource-manager/docs/tags/tags-overview
Keys must be in the format `tagKeys/{tag_key_id}`, and
values are in the format `tagValues/456`.


<a name="nested_shielded_instance_config"></a>The `shielded_instance_config` block supports:

Expand Down