SHARE
TWEET

Untitled

a guest Sep 11th, 2019 73 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. resource "google_compute_instance" "vm_instance" {
  2.   name         = "${var.instance_name}"
  3.   machine_type = "n1-standard-1"
  4.   zone         ="${var.region_zone}"
  5.   allow_stopping_for_update = true
  6.   tags          = ["rule-eng-prd-allow"]
  7.  
  8.   labels = {
  9.     environment = "engennering-dev",
  10.     network     = "${var.network_name}"
  11.   }
  12.   boot_disk {
  13.       auto_delete = "false"
  14.     initialize_params {
  15.       image        = "centos-7-v20190813"
  16.       size         = "100"
  17.       type         = "pd-standard"
  18.     }  
  19.   }
  20.   network_interface {
  21.     # A default network is created for all GCP projects
  22.     subnetwork = "${data.google_compute_subnetwork.enginnering.self_link}"
  23.     network_ip    = "${var.ip_private}"  
  24.    }
  25. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top