Help with copying multiple files/folders from GitHub repo to S3

Hello,

I’m trying to figure out a way to copy all files/folders from a GitHub repro to an AWS S3 bucket using Terraform.

I came across the github_repository_file data source, but I believe it is limited to a single file vs multiple files and directories.

Any help would be appreciated!

Terraform is not the right tool for this job.

Use a general programming language of your choice, or shell scripting to combine usage of Git and any tool that will sync a local file tree with S3, such as rclone.

Thank you for the response. What would be an appropriate usecase for the github_repository_file data source in Terraform?