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 <zseri.devel@ytrizja.de> Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
This commit is contained in:
		
							parent
							
								
									b810956802
								
							
						
					
					
						commit
						d3c20a44d3
					
				
					 1 changed files with 11 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -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
 | 
			
		||||
}
 | 
			
		||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue