We are publishing private modules to our Terraform Cloud. We’d love to use the Terrafile version locking, but it does not seem to be currently supported. If we use a private module directly in Terraform, it would look like this:
module "project" {
source = "app.terraform.io/org-name/project-factory/google"
version = "0.1.0"
}
If we use the following in our Terrafile
it tries to do a Git clone on terraspace bundle
:
mod "project-factory", source: "app.terraform.io/org-name/project-factory/google", version: "0.1.0"
This is the output:
❯ terraspace bundle
Bundling with Terrafile...
ERROR: git clone https://github.com/app.terraform.io/org-name/project-factory/google 2>&1
Cloning into 'google'...
remote: Not Found
fatal: repository 'https://github.com/app.terraform.io/org-name/project-factory/google/' not found