【问题标题】:How to call a custom terraform provider from a terraform module如何从 terraform 模块调用自定义 terraform 提供程序
【发布时间】:2019-11-23 19:27:52
【问题描述】:

我想编写一个 terraform 模块,它将一个参数作为输入并根据输入生成如下标签:TeamSlackEnvironment。此输入将用于调用 REST api 并获取 Team、Slack 等的值。

我正在考虑编写一个自定义 terraform 提供程序,它将调用 REST api。但我不确定如何从 terraform 模块调用自定义提供程序。

【问题讨论】:

    标签: terraform terraform-provider-aws


    【解决方案1】:

    我找到了rest api的提供者。 https://github.com/Mastercard/terraform-provider-restapi 您可以使用它或创建一个新的引用它。

    第三个插件安装可以参考https://www.terraform.io/docs/configuration/providers.html#third-party-plugins

    【讨论】:

      猜你喜欢
      • 2021-03-14
      • 1970-01-01
      • 2021-05-05
      • 2020-07-08
      • 2021-01-03
      • 1970-01-01
      • 2020-05-16
      • 2021-09-07
      • 1970-01-01
      相关资源
      最近更新 更多