【问题标题】:Terraform Plan unable to finishTerraform 计划无法完成
【发布时间】:2021-05-21 22:16:04
【问题描述】:

我有一个 terraform 代码,我正在尝试在 rds 模块上本地运行 terraform plan。这个模块以前可以工作,我不确定我的系统出了什么问题。

Error: dial tcp: lookup xxxxxxxx.us-east-1.rds.amazonaws.com on 192.168.1.1:53: no such host

Error: could not start transaction: dial tcp: lookup xxxxxx.us-east-1.rds.amazonaws.com on 192.168.1.1:53: no such host

谁能指点我如何解决这个错误。

【问题讨论】:

  • 能否展示产生错误的 TF 代码以及如何重现它(如果可能)?

标签: amazon-web-services terraform terraform-provider-aws


【解决方案1】:

看起来您的 DNS 出现问题了。根据您的平台,尝试配置 DNS 名称服务器。

例如,在 Linux 上,编辑 /etc/resolv.conf 并添加:

nameserver 8.8.8.8  

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2018-10-15
    • 2019-10-13
    • 2016-10-05
    • 2019-09-27
    • 1970-01-01
    • 1970-01-01
    • 2021-10-28
    相关资源
    最近更新 更多