mk-87
September 9, 2022, 10:01pm
1
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!
maxb
September 10, 2022, 9:25am
2
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.
mk-87
September 10, 2022, 6:13pm
3
Thank you for the response. What would be an appropriate usecase for the github_repository_file data source in Terraform?