-
Notifications
You must be signed in to change notification settings - Fork 0
/
variables.tf
46 lines (41 loc) · 1.4 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
variable "do_token" {
sensitive = true
}
variable "ssh_fingerprint" {
sensitive = true
}
variable "label" {
type = string
description = "The name you want for your DigitalOcean instance."
default = "Terra-DO"
}
variable "image" {
type = string
description = <<EOT
DigitalOcean Images available. Send to list all available Images: curl -X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-digital-ocean-token>" \
"https://api.digitalocean.com/v2/images?page=1&per_page=100&type=distribution" | jq '.images[].slug'
EOT
default = "debian-12-x64"
}
variable "do_region" {
type = string
description = <<EOT
DigitalOcean available regions. Send to list all available Regions: curl -X GET \
-H "Content-Type: application/json" \
-H "Authorization: Bearer <your-digital-ocean-token>" \
"https://api.digitalocean.com/v2/regions" | jq '.regions[].slug'
EOT
default = "nyc3"
}
variable "do_instance_type" {
type = string
description = <<EOT
DigitalOcean Droplets types to use. Send to list all available Droplets types: curl -X GET \
-H "Content-Type: application/json"
-H "Authorization: Bearer <your-digital-ocean-token>" \
"https://api.digitalocean.com/v2/sizes" | jq '.sizes[].slug'
EOT
default = "s-1vcpu-2gb"
}