-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathvariables.tf
More file actions
67 lines (58 loc) · 1.85 KB
/
variables.tf
File metadata and controls
67 lines (58 loc) · 1.85 KB
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
variable "project_id" {
type = string
default = "your-project-id"
description = "The id of your project on GCP. NOT the name, but similar. List here: https://console.cloud.google.com/cloud-resource-manager"
}
variable "region" {
type = string
#default = "us-east1"
#default = "us-central1"
default = "northamerica-northeast1"
description = "The region to deploy the VM to."
}
variable "zone" {
type = string
#default = "us-east1-c"
#default = "us-central1-a"
default = "northamerica-northeast1-c"
description = "The zone to deploy the VM to."
}
variable "ssh_key" {
type = string
default = "your-path-to-ssh-private-key"
description = "The path to your ssh private key."
}
variable "machine_type" {
type = string
default = "n1-standard-4"
description = <<EOF
The machine type to use for the VM. Some options include:
n1-standard-1, n1-standard-2, n1-standard-4, n1-standard-8, n1-standard-16,
n1-standard-32, n1-standard-64, n1-standard-96
For A100 (12vCPU, 170GB memory): a2-ultragpu-1g
EOF
}
variable "gpu_type" {
type = string
default = "nvidia-tesla-t4"
description = <<EOF
The type of GPU to use for the VM. Some other options include:
nvidia-a100-80gb nvidia-tesla-a100, nvidia-tesla-t4, nvidia-tesla-v100,
nvidia-tesla-p4, nvidia-tesla-p100, nvidia-tesla-k80
EOF
}
variable "num_gpus" {
type = number
default = 1
description = "The number of GPUs to use for the VM."
}
variable "disk_size" {
type = number
default = 100
description = "The size of the disk in GB."
}
variable "vm_state" {
type = string
default = "RUNNING"
description = "The state of the VM. Can be 'RUNNING' or 'TERMINATED'. Change it to 'TERMINATED' to stop the VM but keep the rest of your resources in place"
}