title: How to replace double quote character with single quote character in terraform
body: <p>I'm running into a situation where i need terraform to replace this list with strings enclosed in single quotes like this. ['test1','test2']. How would i go about replacing a double quote character with a single quote character? I'm using the replace method, but getting an error when trying to replace with a single quote character. I believe terraform does not support single quotes.  Another thing i would like is to create a new local that holds the string value &quot;'test1','test2'&quot;, this is basically removing the square brackets.</p>
  <pre><code>locals { 
    appengineversions = [&quot;test1&quot;,&quot;test2&quot;]
    appengine_instances_list = replace(local.appengine,'\&quot;',&quot;\'&quot;)
  
  } 
  </code></pre>