title: Terraform list of tuples as string to iterate in Shell script
body: <p>I have a list of tuples:</p>
  <pre><code>variable &quot;list_of_tuples&quot; {
    type = list(tuple([string, string]))
  }
  </code></pre>
  <p>and data for that will look something like this: <code>([&quot;c&quot;, &quot;3&quot;], [&quot;e&quot;, &quot;5&quot;])</code></p>
  <p>My aim is to convert the list to a string like <code>&quot;c 3, e 5&quot;</code> so I can use it in my template Bash script file to iterate in the similar way a here:</p>
  <pre class="lang-sh prettyprint-override"><code>for i in &quot;c 3&quot; &quot;e 5&quot;
  do
      set -- $i
      echo $1 and $2
  done
  </code></pre>
  <p>Thanks</p>