get https://api.env0.com/modules/v1/////download
Gets the URL of the source code for a Terraform module.
This is an API used by Terraform to download the module when running terraform init
.
The URL could be found in the response header under X-Terraform-Get, and its format is "git::REPOSITORY_URL[//PATH_TO_FOLDER][?ref=GIT_REF]"
You could use this URL to clone the repository and checkout the specific git ref, and find the source in the specified folder