-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
88 lines (72 loc) · 2.35 KB
/
variables.tf
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
variable "project" {
description = "project name"
type = string
}
variable "region" {
description = "region"
type = string
}
variable "vpc_name" {
description = "VPC Network name"
type = string
}
variable "subnetwork" {
description = "Subnetwork name"
type = string
}
variable "name" {
description = "Name of the instance"
type = string
}
variable "create_dns_record" {
description = "Create external DNS record for the instance"
type = bool
default = false
}
variable "domain" {
description = "Domain name used to create DNS records"
type = string
}
variable "instance" {
description = "The configurations for the VMs to be created."
type = object({
name = string
machine_type = string
image = string
boot_disk_size = number
zone = string
disk_type = optional(string)
tags = optional(list(string))
delete_protection = optional(bool)
enable_display = optional(bool) # Enable display for Windows VMs to capture screenshots
allow_stopping_for_update = optional(bool) # Allow the instance to be stopped for update
labels = optional(map(string))
extra_disks = optional(list(object({ # The extra disks to be attached to the VM
name = string
type = string
size = string
physical_block_size_bytes = number
zone = string
})))
# Network interface configuration
nic_type = optional(string)
stack_type = optional(string)
access_config = optional(list(object({
nat_ip = string
network_tier = string
})))
service_account = object({
email = string
scopes = set(string)
})
vm_startup_script = optional(string) # The path to the startup script for the VM
vm_startup_metadata = optional(list(object({ # The metadata for domain join
windows-startup-script-url = string
managed-ad-domain = string
managed-ad-domain-join-failure-stop = string
enable-guest-attributes = string
#managed-ad-ou-name = string
})))
})
default = {}
}