-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathvariables.tf
195 lines (162 loc) · 4.78 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
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
#####################################################################
# region: GCP Provider
variable "gcp_project_id" {
description = "The GCP project ID"
type = string
default = "your-project-id"
}
variable "gcp_region" {
description = "The GCP region"
type = string
default = "us-central1"
}
variable "gcp_zone" {
description = "The GCP zone"
type = string
default = "us-central1-a"
}
variable "gcp_network_name" {
description = "The name of the GCP network"
type = string
default = "default"
}
# endregion
#####################################################################
# region: VM
variable "vm_name" {
description = "The name of the VM"
type = string
default = "ssv-node"
}
variable "vm_image" {
description = "The OS image for the VM"
type = string
default = "https://www.googleapis.com/compute/v1/projects/ubuntu-os-cloud/global/images/ubuntu-minimal-2204-jammy-v20230726"
}
variable "vm_machine_type" {
description = "The machine type for the VM. See: https://cloud.google.com/compute/docs/machine-types"
type = string
default = "n1-standard-2"
}
variable "vm_boot_disk_size" {
description = "The size of the boot disk in GB"
type = number
default = 10
}
variable "vm_boot_disk_type" {
description = "The type of the boot disk"
type = string
default = "pd-ssd"
}
variable "vm_data_disk_size" {
description = "The size of the data disk in GB"
type = number
default = 10
}
variable "vm_data_disk_disk_type" {
description = "The type of the data disk"
type = string
default = "pd-ssd"
}
variable "vm_data_disk_mount_point" {
description = "The mount point for the data disk on the VM"
type = string
default = "/data"
}
# endregion
#####################################################################
# region: Network
variable "network_tier" {
description = "The network tier for the subnet"
type = string
default = "PREMIUM"
}
variable "network_subnet_cidr_range" {
description = "The IP CIDR range for the subnet"
type = string
default = "10.100.105.0/24"
}
# endregion
#####################################################################
# region: Firewall
variable "firewall_priority" {
description = "The priority for the firewall rules"
type = number
default = 1000
}
variable "firewall_source_tags" {
description = "List of source tags for the 'fw_de_allow_7' firewall rule"
type = list(string)
default = []
}
# endregion
#####################################################################
# region: SSV
variable "ssv_network" {
description = "The Ethereum network for the SSV node to connect with"
type = string
default = "mainnet"
}
variable "ssv_data_dir" {
description = "The data directory for the SSV node. This directory path is appended to the value of 'vm_data_disk_mount_point' to form the full path for storing SSV node's data"
type = string
default = "/ssv"
}
variable "ssv_encrypted_key_secret_id" {
description = "The ID of the secret containing the encrypted operator key"
type = string
default = "sc-ssv-encrypted-key"
}
variable "ssv_password_secret_id" {
description = "The ID of the secret containing the password"
type = string
default = "sc-ssv-password"
}
variable "ssv_consensus_client_endpoint" {
description = "The consensus client endpoint of Ethereum node"
type = string
default = "http://localhost:5052"
}
variable "ssv_execution_client_websocket_endpoint" {
type = string
default = "http://localhost:8546"
description = "The execution client websocket endpoint of Ethereum node"
}
variable "ssv_tcp_port" {
type = number
default = 13000
description = "The TCP port for the SSV node"
}
variable "ssv_udp_port" {
type = number
default = 12000
description = "The UDP port for the SSV node"
}
variable "ssv_metrics_api_port" {
type = number
default = 15000
description = "The Metrics API port for monitoring the SSV node"
}
variable "ssv_docker_image_tag" {
type = string
default = "latest"
description = "The tag for the SSV Docker image"
}
# endregion
#####################################################################
# region: SSH
variable "ssh" {
type = object({
type = string
user = string
private_key = string
})
default = {
type = "ssh"
user = "username"
private_key = "~/.ssh/private_key"
}
description = "SSH configuration for accessing the VM. Specify the SSH user and the path to the private key file"
}
# endregion
#####################################################################