aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--secrets/id_rsabin0 -> 3403 bytes
-rw-r--r--secrets/id_rsa.pubbin0 -> 763 bytes
-rw-r--r--vps.tf11
3 files changed, 6 insertions, 5 deletions
diff --git a/secrets/id_rsa b/secrets/id_rsa
new file mode 100644
index 0000000..8bd910b
--- /dev/null
+++ b/secrets/id_rsa
Binary files differ
diff --git a/secrets/id_rsa.pub b/secrets/id_rsa.pub
new file mode 100644
index 0000000..1301181
--- /dev/null
+++ b/secrets/id_rsa.pub
Binary files differ
diff --git a/vps.tf b/vps.tf
index 257907b..e5f0884 100644
--- a/vps.tf
+++ b/vps.tf
@@ -1,6 +1,4 @@
variable "do_token" {}
-variable "pub_key" {}
-variable "pvt_key" {}
variable "ssh_fingerprint" {}
provider "digitalocean" {
@@ -10,9 +8,12 @@ provider "digitalocean" {
resource "digitalocean_droplet" "vps" {
image = "ubuntu-18-04-x64"
- name = "ubuntu-vps"
- region = "nyc2"
+ name = "sovereignty"
+ region = "nyc3"
size = "512mb"
+ backups = true
+ ipv6 = true
+ monitoring = true
ssh_keys = [
"${var.ssh_fingerprint}"
]
@@ -20,7 +21,7 @@ resource "digitalocean_droplet" "vps" {
connection {
user = "root"
type = "ssh"
- private_key = "${file(var.pvt_key)}"
+ private_key = "${file("${path.module}/secrets/id_rsa")}"
timeout = "2m"
}