title: How do I archive file/dir from a gitlab repository using Terraform?
body: <p>I need to archive a directory from my gitlab repo using terraform in order to use the ZIP file in an aws lambda function.
  when putting a url in the source attribute it errors:
  <code>Error: error archiving file: could not archive missing file: https://*********/lambda.py</code></p>
  <p>my Terraform code for archiving the file is:</p>
  <pre><code>data &quot;archive_file&quot; &quot;init&quot; {
     type        = &quot;zip&quot;
     output_path = &quot;${path.module}/example.zip&quot;
     source_file = &quot;https://*********/lambda.py&quot;
  }
  </code></pre>
  <p>so obviously this is not the right way to do it, didn't find anything regarding this online, is there a proper way to do this using Terraform?</p>