I have two repos(it has to be two because of my pipeline setup), one repo contains the needed terraform scripts that will creates an S3 bucket (very simple), another repo contains the backend setup, and when I test locally, I can download the model in the first repo by using:
module "xxxxxx-sagemaker" {
source = "../../the_first_repo_name/terraform"
}
and this will create the s3 bucket for me by running 'terraform apply'.
But now if I don't want to use this local path ../../the_first_repo_name/terraform
, I need Concourse pipeline to apply terraform for me, how can I modify this local path so that Concourse can find the terraform scripts and download it?
I had a look at this page: https://www.terraform.io/docs/modules/sources.html, it says I can also specify a github url, but it doesn't work because my terraform codes are not merged into develop branch yet, and it seems can't recognise the code, what should I do now? Hope this makes sense, thanks.