Tôi cần trợ giúp tìm nguồn cung ứng mô-đun địa hình từ kho lưu trữ gitlab với nhiều mô-đun trong đó như ec2, vpc, v.v. Tôi có hai nhánh trong kho lưu trữ mô-đun - phát triển và chính. Tôi đã thử tất cả các cách bên dưới nhưng đều gặp lỗi. Tôi đang tìm nguồn cung ứng một cái gì đó như dưới đây. Tôi chỉ cần ssh, không phải https.
source = "git::ssh://git@gitlabrepo.com:repo_name/modules.git//ec2?ref=develop"
"git::ssh://git@gitlabrepo.com:repo_name/modules.git//ec2?ref=develop"
"git::ssh://git@gitlabrepo.com:repo_name/modules.git/ec2?ref=develop"
"git::ssh://git@gitlabrepo.com:repo_name/modules/ec2?ref=develop"
"git::ssh://git@gitlabrepo.com:repo_name/modules//ec2?ref=develop"
"git::ssh://git@gitlabrepo.com/repo_name/modules//ec2?ref=develop"
"git::ssh://git@gitlabrepo.com:repo_name/modules.git//ec2"
"git::ssh://git@gitlabrepo.com:repo_name/modules.git?ref=ec2"
"git::ssh://git@gitlabrepo.com:repo_name/modules.git?ref=develop//ec2"
"git::ssh://git@gitlabrepo.com:repo_name/modules.git/develop/ec2"
"git::ssh://git@gitlabrepo.com:repo_name/modules.git//ec2?ref=develop"
"git::ssh://git@gitlabrepo.com:repo_name/modules.git/develop/ec2"
"git::ssh://git@gitlabrepo.com:repo_name/modules/ec2?ref=develop"
"git::ssh://git@code.gitlabrepo.com:repo_name/modules//ec2"
Đây là lỗi tôi nhận được
â
â Mô-đun "ec2" (khai báo tại dòng 1 compute/main.tf)
â có địa chỉ nguồn không hợp lệ
â "git::ssh://git@code.gitlabrepo.com:repo_name/modules//ec2": Terraform
â không thể phát hiện loại nguồn mô-đun bên ngoài được hỗ trợ cho