Skip to content

Commit

Permalink
feat: added new field vm_tags to the workstation config (#11015) (#18588
Browse files Browse the repository at this point in the history
)

[upstream:19fa1816cf373f84daa252027cf7e10855f37b14]

Signed-off-by: Modular Magician <magic-modules@google.com>
  • Loading branch information
modular-magician committed Jun 27, 2024
1 parent 47243ee commit d728b0b
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 0 deletions.
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

0 comments on commit d728b0b

Please sign in to comment.