title: How to pass variables to a google_storage_bucket_object in terraform 13.5
body: <p>I have a google storage bucket object that gets created (via terraform)like so:</p>
  <pre><code>resource &quot;google_storage_bucket_object&quot; &quot;my_post_startup_script&quot; {
    name   = &quot;my-script.sh&quot;
    source = &quot;${path.module}/my-script.sh&quot;
    bucket = my_bucket
  }
  </code></pre>
  <p>But inside that script are things I'd like to make variables.</p>
  <p>So say my-script.sh looks like:</p>
  <pre><code>#!/bin/bash
  echo &quot;hello ${name}&quot;
  </code></pre>
  <p>Is there a way for me to pass a variable in so to be interpolated so that the script that gets uploaded actually says &quot;hello John&quot;</p>
  <p>This may requires some intermediate step that creates a file with the variable interpolation that I can then pass in as the source for the google_storage_bucket_object - but not sure how that would be done.</p>