title: Is there a way to work with multiple workspaces in parallel?
body: <p>In a Continuous Integration setup (Jenkins) I'd like to deploy (<code>terraform apply</code>) changes of the same Terraform configuration code using multiple workspaces at the same time using the same copy of the repository - i.e. the very same directory with <code>.tf</code> files.</p>
  <p>Stages are executed in parallel (on same node/agent) and each of them consists of the same sequence of operations (<code>terraform workspace select</code> and then <code>terraform apply</code>).</p>
  <p>It doesn't seem supported as the attempts fail with lock errors, e.g.</p>
  <pre><code># terraform workspace select &quot;workspace1&quot;
  # terraform apply [...] -input=false -auto-approve
  
   Switched to workspace &quot;workspace1&quot;.
   Acquiring state lock. This may take a few moments...
   
   Error: Error locking state: Error acquiring the state lock: ConditionalCheckFailedException: The conditional request failed
   Lock Info:
     ID:        52973611-a892-deac-985b-5aa28172fdaf
     Path:      my-project/env:/workspace5/state
     Operation: OperationTypeApply
     Who:       @87ddd2118473
     Version:   0.13.5
     Created:   2021-01-11 15:20:06.635256155 +0000 UTC
     Info:      
  </code></pre>
  <p>So it looks like lock for <code>workspace5</code> gets in the way for applying for <code>workspace1</code>.</p>
  <p>Is there any way out?</p>
  <p>I use:</p>
  <ul>
  <li>Terraform 0.13.5</li>
  <li><code>s3</code> as the backend</li>
  <li>DynamoDB for locks</li>
  </ul>