title: terraform Invalid value for "seqs" parameter: all arguments must be lists or tuples; got string
body: <p>Why i'm not using the ID directly:</p>
  <ul>
  <li>I have multiple datalake's where the filesystem is deployed. It throws error &quot;resource not found&quot;  during the deployment.</li>
  </ul>
  <p>What i'm trying to achieve now:</p>
  <ul>
  <li>i am trying to use concat function and create the ID's. which is throwing an error.</li>
  </ul>
  <pre><code>module.adlsfs[&quot;adlsfilesystem1&quot;].time_sleep.wait_few_mins_fs: Refreshing state... [id=2022-07-23T21:45:55Z]
  ╷
  │ Error: Invalid function argument
  │ 
  │   on ../../../tf-core-module/adls/fs/filesystem.tf line 20, in resource &quot;azurerm_storage_data_lake_gen2_filesystem&quot; &quot;storagedlsgen2fs&quot;:
  │   20:   storage_account_id = concat(&quot;/subscriptions/&quot;,data.azurerm_subscription.current.id,&quot;/resourceGroups/rsg-test/providers/Microsoft.Storage/storageAccounts/&quot;,each.value.staname)
  │ 
  │ Invalid value for &quot;seqs&quot; parameter: all arguments must be lists or tuples; got string.
  ╵
  ╷
  │ Error: Invalid function argument
  │ 
  │   on ../../../tf-core-module/adls/fs/filesystem.tf line 20, in resource &quot;azurerm_storage_data_lake_gen2_filesystem&quot; &quot;storagedlsgen2fs&quot;:
  │   20:   storage_account_id = concat(&quot;/subscriptions/&quot;,data.azurerm_subscription.current.id,&quot;/resourceGroups/rsg-test/providers/Microsoft.Storage/storageAccounts/&quot;,each.value.staname)
  │ 
  │ Invalid value for &quot;seqs&quot; parameter: all arguments must be lists or tuples; got string.
  
  </code></pre>
  <pre><code>data &quot;azurerm_subscription&quot; &quot;current&quot; {
  }
  
  locals {
    staname = toset([
      for pair in sort(var.sta_name) : {
        staname  = pair
      }
    ])
  }
  
  //**********************************************************
  //  Create File System in Datalake
  //**********************************************************
  resource &quot;azurerm_storage_data_lake_gen2_filesystem&quot; &quot;storagedlsgen2fs&quot; {
    for_each = { for p in local.staname : jsonencode(p) =&gt; p }
    name               = var.adlsfilesystems
    storage_account_id = concat(&quot;/subscriptions/&quot;,data.azurerm_subscription.current.id,&quot;/resourceGroups/resourcegroup/providers/Microsoft.Storage/storageAccounts/&quot;,each.value.staname)
  }
  </code></pre>
  <p>Is it even possible to use the function here? and how can i solve this.</p>
  <p>thank you</p>