We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bfbe90f commit f59ea25Copy full SHA for f59ea25
main.tf
@@ -89,9 +89,10 @@ resource "google_compute_instance" "main" {
89
block-project-ssh-keys = true
90
}
91
92
- labels = {
93
- container-vm = module.gce_container_sqlproxy.vm_container_label
94
- }
+ labels = merge(
+ { container-vm = module.gce_container_sqlproxy.vm_container_label },
+ var.labels
95
+ )
96
97
tags = [
98
local.network_tag
variables.tf
@@ -70,3 +70,9 @@ variable "allow_public_ip" {
70
type = bool
71
default = false
72
73
+
74
+variable "labels" {
75
+ description = "A set of key/value label pairs to assign to the vm."
76
+ type = map(string)
77
+ default = {}
78
+}
0 commit comments