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 89a4fb7 commit 4979e66Copy full SHA for 4979e66
google_image_nixos/main.tf
@@ -10,6 +10,12 @@ variable "gcp_project_id" {
10
description = "The ID of the project in which the resource belongs. If it is not provided, the provider project is used."
11
}
12
13
+variable "labels" {
14
+ type = map(string)
15
+ default = {}
16
+ description = "A map of labels applied to this image."
17
+}
18
+
19
variable "licenses" {
20
type = list(string)
21
@@ -41,6 +47,7 @@ resource "google_compute_image" "nixos" {
41
47
description = "NixOS ${var.nixos_version}"
42
48
family = "nixos"
43
49
project = var.gcp_project_id
50
+ labels = var.labels
44
51
licenses = var.licenses
45
52
46
53
raw_disk {
0 commit comments