-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathresources.tf
92 lines (80 loc) · 1.34 KB
/
resources.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
# Find the ID of the Silicon Valley region.
data "vultr_region" "silicon_valley" {
filter {
name = "name"
values = ["Silicon Valley"]
}
}
# Find the ID for Ubuntu 18.04 x64 Linux.
data "vultr_os" "ubuntu18" {
filter {
name = "name"
values = ["Ubuntu 18.04 x64"]
}
}
# Find the ID for Ubuntu 18.04 x64 Linux.
data "vultr_os" "ubuntu16" {
filter {
name = "name"
values = ["Ubuntu 16.04 x64"]
}
}
# Find the ID for a starter plan.
# 5
data "vultr_plan" "vc2-5" {
filter {
name = "price_per_month"
values = ["5.00"]
}
filter {
name = "ram"
values = ["1024"]
}
}
# 10
data "vultr_plan" "vc2-10" {
filter {
name = "price_per_month"
values = ["10.00"]
}
filter {
name = "ram"
values = ["2048"]
}
}
# 20
data "vultr_plan" "vc2-20" {
filter {
name = "price_per_month"
values = ["20.00"]
}
filter {
name = "ram"
values = ["4096"]
}
}
# 40
data "vultr_plan" "vc2-40" {
filter {
name = "price_per_month"
values = ["40.00"]
}
filter {
name = "ram"
values = ["8192"]
}
}
# BARE METAL
data "vultr_bare_metal_plan" "bm-8" {
filter {
name = "cpu_count"
values = [8]
}
}
# Find the ID of an existing SSH key.
data "vultr_ssh_key" "primary" {
filter {
name = "name"
values = ["example-primary"]
}
}