I am trying to checkout git repo code in Terraform and access a file (my_file.py) in it, I used below code,
module "my_git_repo" {
source = "https://git.mycompany.org/my_repo.git"
}
output:
"my_display" {
value = "${my_git_repo.source}/my_file.py"
}
Error I get is, Error: Failed to download module downloading 'https://git.mycompany.org/my_repo.git': no source URL was returned
Note: I can checkout with "git clone" on command.