From d3c20a44d37f0246dc9d848e6c63da2839f8dc4f Mon Sep 17 00:00:00 2001 From: William Carroll Date: Tue, 28 Dec 2021 23:29:59 -0400 Subject: feat(wpcarro/terraform): Attach 100GB external disk to VM 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 Reviewed-by: wpcarro Autosubmit: wpcarro --- users/wpcarro/terraform/gcp.tf | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'users') 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 -- cgit 1.4.1