title: Unable to run metadata_startup_script in Terraform
body: <p>I have a terraform script</p>
  <pre><code>resource &quot;google_compute_attached_disk&quot; &quot;default3&quot; {
    disk     = google_compute_disk.default2.id
    instance = google_compute_instance.default.id
  }
  
  resource &quot;google_compute_instance&quot; &quot;default&quot; {
    name         = &quot;test&quot;
    machine_type = &quot;custom-8-16384&quot;
    zone         = &quot;asia-south1-a&quot;
  
    tags = [&quot;foo&quot;, &quot;bar&quot;]
  
    boot_disk {
      initialize_params {
        image = &quot;centos-cloud/centos-7&quot;
      }
    }
  
    network_interface {
      network = &quot;default&quot;
  
      access_config {
        
      }
    }
      metadata_startup_script = &lt;&lt;-EOF
    echo &quot;hello
    you&quot; &gt; /test.txt
    echo &quot;help
    me&quot; &gt; /test2.txt
    EOF
  
  
    lifecycle {
      ignore_changes = [attached_disk]
    }
  }
  
  resource &quot;google_compute_disk&quot; &quot;default2&quot; {
    name  = &quot;test-disk&quot;
    type  = &quot;pd-balanced&quot;
    zone  = &quot;asia-south1-a&quot;
    image = &quot;centos-7-v20210609&quot;
    size =  100
  }
  </code></pre>
  <p>Now I want to run metadata_startup_script, but it won`t execute. Resources are created but the script is not executed. How can I run this script?
  Basically I have a big bash script. How can I run this script in GCP machine?</p>