about summary refs log tree commit diff
path: root/users
diff options
context:
space:
mode:
authorWilliam Carroll <wpcarro@gmail.com>2021-12-29T03·29-0400
committerclbot <clbot@tvl.fyi>2021-12-29T18·51+0000
commitd3c20a44d37f0246dc9d848e6c63da2839f8dc4f (patch)
treefd867030ef27ceae444441610b4b2027abd0e32a /users
parentb8109568025b353a669f4297ec44c970073e3ff6 (diff)
feat(wpcarro/terraform): Attach 100GB external disk to VM r/3499
I'm mimmicking the setup of diogenes-1 until I switch everything over to the
terraform-defined diogenes.

Change-Id: Ic9b54909696616b5f206bbf982ff556f053c424e
Reviewed-on: https://cl.tvl.fyi/c/depot/+/4738
Tested-by: BuildkiteCI
Reviewed-by: zseri <zseri.devel@ytrizja.de>
Reviewed-by: wpcarro <wpcarro@gmail.com>
Autosubmit: wpcarro <wpcarro@gmail.com>
Diffstat (limited to 'users')
-rw-r--r--users/wpcarro/terraform/gcp.tf11
1 files changed, 11 insertions, 0 deletions
diff --git a/users/wpcarro/terraform/gcp.tf b/users/wpcarro/terraform/gcp.tf
index 92af096953cb..03bb721c9d35 100644
--- a/users/wpcarro/terraform/gcp.tf
+++ b/users/wpcarro/terraform/gcp.tf
@@ -27,6 +27,11 @@ resource "google_compute_instance" "default" {
     }
   }
 
+  attached_disk {
+    source      = "diogenes-2-disk"
+    device_name = "diogenes-2-disk"
+  }
+
   network_interface {
     network    = "default"
     subnetwork = "default"
@@ -65,4 +70,10 @@ resource "google_compute_firewall" "default" {
   }
 
   source_tags = ["diogenes-firewall"]
+}
+
+resource "google_compute_disk" "default" {
+  name = "diogenes-2-disk"
+  zone = "us-central1-a"
+  size = 100
 }
\ No newline at end of file