我在aws上使用我的基础设施(IAC)和terragrunt + terraform。
我已经将 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
我也超时了