【问题标题】:pulumi times out importing gcp record setpulumi 导入 gcp 记录集超时
【发布时间】:2020-06-26 22:23:25
【问题描述】:

我有一些我正在尝试使用 pulumi 导入的 dns 记录,但由于这个错误,它们有些直截了当地失败了:

Diagnostics:
  gcp:dns:RecordSet (root/my.domain./NS):
    error: Preview failed: refreshing urn:pulumi:root::root::gcp:dns/recordSet:RecordSet::root/my.domain./NS: Error when reading or editing DNS Record Set "my.domain.": Get "https://www.googleapis.com/dns/v1beta2/projects/root-280012/managedZones/root/rrsets?alt=json&name=my.domain.&prettyPrint=false&type=NS": context deadline exceeded (Client.Timeout exceeded while awaiting headers)
 
  pulumi:pulumi:Stack (root-root):
    error: preview failed

我刚刚开始使用 pulumi,所以我不知道这是 GCP 特有的问题还是更普遍的 pulumi 问题,所以如果发错地方了,请致歉。

这只是增加超时限制的一种情况吗?这是cli的问题吗?为什么这个特定的请求会超时? (每次尝试都会超时)

感谢任何建议!

【问题讨论】:

    标签: pulumi


    【解决方案1】:

    我通过使用customTimeouts:https://www.pulumi.com/docs/intro/concepts/programming-model/#customtimeouts解决了这个问题

    创建资源时,您可以传递一个选项对象作为最后一个参数。在那里,您可以添加您的 customTimeouts 配置,例如(用于打字稿):

    {
        customTimeouts: {
            create: '5m',
            delete: '5m',
            update: '5m'
        }
    })
    

    【讨论】:

      猜你喜欢
      • 2021-12-26
      • 1970-01-01
      • 1970-01-01
      • 2021-11-14
      • 2021-09-07
      • 2023-04-05
      • 1970-01-01
      • 1970-01-01
      • 2022-09-06
      相关资源
      最近更新 更多