Terragrunt+;带有模块的地形+;GITLab

Terragrunt+;带有模块的地形+;GITLab,gitlab,terraform,terragrunt,Gitlab,Terraform,Terragrunt,我正在用terragrunt+terraform在aws使用我的基础设施(IAC) # --------------------------------------------------------------------------------------------------------------------- # Configuração do Terragrunt # ---------------------------------------------------------

我正在用terragrunt+terraform在aws使用我的基础设施(IAC)

# ---------------------------------------------------------------------------------------------------------------------
# Configuração do Terragrunt
# ---------------------------------------------------------------------------------------------------------------------

terragrunt = {
  terraform {
     source = "git::ssh://git@gitlab.compamyx.com.br:2222/x/terraform-blueprints.git//route53?ref=0.3.12"
 }

  include = {
    path = "${find_in_parent_folders()}"
  } 
}

# ---------------------------------------------------------------------------------------------------------------------
# Parâmetros da Blueprint
#


zone_id       = "ZDU54ADSD8R7PIX"
name          = "k8s"
type          = "CNAME"
ttl           = "5"
records       = ["tmp-elb.com"]
我已经将ssh密钥、GPG密钥添加到git实验室,并在分支中使存储库不受保护,以进行测试,但它不起作用

这将是模块调用,与terraform的main.tf相等

# ---------------------------------------------------------------------------------------------------------------------
# Configuração do Terragrunt
# ---------------------------------------------------------------------------------------------------------------------

terragrunt = {
  terraform {
     source = "git::ssh://git@gitlab.compamyx.com.br:2222/x/terraform-blueprints.git//route53?ref=0.3.12"
 }

  include = {
    path = "${find_in_parent_folders()}"
  } 
}

# ---------------------------------------------------------------------------------------------------------------------
# Parâmetros da Blueprint
#


zone_id       = "ZDU54ADSD8R7PIX"
name          = "k8s"
type          = "CNAME"
ttl           = "5"
records       = ["tmp-elb.com"]
关键是,当我给出init terragrunt时,在其中一个模块中,我有以下错误: ssh:连接到主机gitlab.company.com.br端口2222:连接超时 致命:无法从远程存储库读取

Please make sure you have the correct access rights
and the repository exists.

[terragrunt] 2020/02/05 15:23:18 Hit multiple errors:
exit status 1
我参加了考试

ssh -vvvv -T gitlab.companyx.com.br -p 2222

我还超时了

这似乎根本不是
terragrunt
terraform
的问题,而是SSH访问服务器的问题

如果您遇到超时,则很可能是连接问题(即,防火墙/网络ACL阻止您尝试访问该端口的端口上的访问)


如果是SSH密钥问题,您可能会遇到“拒绝访问”或类似问题,但超时确实让我相信是连接问题。

报告的错误
SSH:connect to host gitlab.company.com.br端口2222:连接超时致命:无法从远程存储库读取。