title: Template launch failed while running a streaming dataflow job using flex-template
body: <p>I'm trying to automate provisioning of streaming job using cloud build, for the POC I tried <a href="https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/dataflow/flex-templates/streaming_beam" rel="nofollow noreferrer">https://github.com/GoogleCloudPlatform/python-docs-samples/tree/master/dataflow/flex-templates/streaming_beam</a></p>
  <p>It worked as expected when I manually ran the commands.</p>
  <p>When I add the commands in <code>cloudbuild.yaml</code> file the build gets created successfully but the dataflow job fails each time with the below error:</p>
  <pre><code>Error occurred in the launcher container: Template launch failed. See console logs
  </code></pre>
  <p>This is the only error log that I get, I tried to add extra permissions to Cloud Build service account but that didn't help either.</p>
  <p>Since there's no other info mentioned in the log file I find it hard to debug it as well.</p>