TFC Modules Support?

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

Bummer. You’re right this is not currently supported. Here’s an open issue: https://github.com/boltops-tools/terraspace-bundler/issues/6 It’s one of the more important issues that would like to address. Would like to see this, just a matter of time.

1 Like

@tung Awesome, just threw that issue on my watch list. Thankfully, not a blocker. :beers: