Terraform Version
Terraform Configuration Files
module "some_module_name" {
source = "git@github.com:andresusanto/repo//modules/some_module?ref=923e51e12c6e5a1c76dd42a59837d5359d6eaa92" # a valid git commit sha
some_variable = var.some_variable
}
Expected Behavior
Terraform should be able to pull the module from the repo. I have confirmed that it works on terraform 1.0.11.
Actual Behavior
╷
│ Error: Failed to download module
│
│ Could not download module "some_module_name"
│ (../modules/test/main.tf:8) source code from
│ "git::ssh://git@github.com/andresusanto/test-repo?ref=923e51e12c6e5a1c76dd42a59837d5359d6eaa92":
│ error downloading
│ 'ssh://git@github.com/andresusanto/test-repo?ref=923e51e12c6e5a1c76dd42a59837d5359d6eaa92':
│ /usr/bin/git exited with 128: Cloning into
│ '.terraform/modules/env.some_module_name'...
│ Warning: Permanently added the ECDSA host key for IP address '140.82.112.4'
│ to the list of known hosts.
│ fatal: Remote branch 923e51e12c6e5a1c76dd42a59837d5359d6eaa92 not found in
│ upstream origin
Steps to Reproduce
Should be able to reproduce this by using any module with git source and ref pointing to commit sha on terraform 1.1.0.
Terraform Version
Terraform Configuration Files
Expected Behavior
Terraform should be able to pull the module from the repo. I have confirmed that it works on terraform 1.0.11.
Actual Behavior
Steps to Reproduce
Should be able to reproduce this by using any module with
gitsource andrefpointing to commit sha on terraform 1.1.0.