-
Notifications
You must be signed in to change notification settings - Fork 3
Expand file tree
/
Copy pathmain.tf
More file actions
27 lines (19 loc) · 648 Bytes
/
main.tf
File metadata and controls
27 lines (19 loc) · 648 Bytes
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
provider "digitalocean" {}
resource "digitalocean_droplet" "node" {
name = "node${count.index + 1}"
region = "nyc3"
# size = "s-1vcpu-1gb"
# cheapest vps with 600GB disk. needed to save money after the bitcoind build
# since DO does not allow shrinking disk once expanded.
size = "m6-4vcpu-32gb"
# largest vps on DO. needed to build bitcoind. $2/hr at time of writing.
# size = "c-48"
# smallest compute optimized droplet. good for initial setup before bitcoind build.
# size = "c-2"
# my image, use your own
image = 140788016
# my ssh key, use your own
ssh_keys = [39451484]
# 20 nodes
count = 20
}