Executing Terraform configuration code that contains an archive_file data source results in output similar to the error below:
error archiving directory: error reading file for archival: read dir_with_symlink/symlinked: is a directory
This is encountered when the value provided for the
source_file attribute contains symlinks.
Please update your configuration code to utilize version
2.4.0 of the archive provider, as this issue is addressed within that version.