title: Uploading Multiple files in AWS S3 from terraform
body: <p>I want to upload multiple files to AWS S3 from a specific  folder in my local device. I am running into the following error.</p>
  <p><img src="https://i.stack.imgur.com/8BqLL.png" alt="enter image description here" /></p>
  <p>Here is my terraform code.</p>
  <pre><code>resource &quot;aws_s3_bucket&quot; &quot;testbucket&quot; {
      bucket = &quot;test-terraform-pawan-1&quot;
      acl = &quot;private&quot;
  
      tags = {
          Name  = &quot;test-terraform&quot;
          Environment = &quot;test&quot;
      }
  }
  
  resource &quot;aws_s3_bucket_object&quot; &quot;uploadfile&quot; {
    bucket = &quot;test-terraform-pawan-1&quot;
    key     = &quot;index.html&quot;
    source = &quot;/home/pawan/Documents/Projects/&quot;
  
  }
  </code></pre>
  <p>How can I solve this problem?</p>