Terraform Modules & Private Repositories
Terraform Modules & Private repositories
A common way of sharing terraform code is by using modules. However, modules often end up extracted into a separate repo. This starts to create issues when integrating with a CICD tool as the tool needs to have access to all modules in order to download them.
For example, let’s assume we have the following module imported into our terraform configuration:
module "abc" {
source = "git@github.com:username/repository"
}
This implies that our CICD need to have access to the username/repository
.