title: Using Terraform's helm_release, how do I set array or list values?
body: <p>For example, per the <a href="https://artifacthub.io/packages/helm/bitnami/drupal" rel="nofollow noreferrer">helm chart documentation for Drupal</a>, the default value for <code>accessModes</code> is <code>[&quot;ReadWriteOnce&quot;]</code> which translates to the following in the YAML:</p>
  <pre><code>...
  accessModes
  - ReadWriteOnce
  </code></pre>
  <p>When using the Terraform <a href="https://registry.terraform.io/providers/hashicorp/helm/latest/docs/resources/release" rel="nofollow noreferrer">helm_release</a> resource, the following do not work and the yaml file always shows the default from above:</p>
  <pre><code>  set {
      name  = &quot;persistence.accessModes&quot;
      value = &quot;ReadWriteMany&quot;
    }
  </code></pre>
  <pre><code>  set {
      name  = &quot;persistence.accessModes&quot;
      value = &quot;[\&quot;ReadWriteMany\&quot;]&quot;
    }
  </code></pre>
  <pre><code>  set {
      name  = &quot;persistence.accessModes&quot;
      value = &quot;- ReadWriteMany&quot;
    }
  </code></pre>