【问题标题】:Terraspace using public modules使用公共模块的 Terraspace
【发布时间】:2020-09-25 13:28:27
【问题描述】:

最近我发现了很棒的 terraspace 框架。我按照教程进行了操作,但现在我对如何使用公共模块感到担忧,例如,我想使用这个模块创建一个 gcp 计算:https://registry.terraform.io/modules/terraform-google-modules/vm/google/4.0.0

【问题讨论】:

标签: terraform terraspace


【解决方案1】:

Terraspace 使用 Terraform HCL,因此您可以使用 module source 关键字来包含公共或私有的 3rd 方模块。 @T.H.链接使用模块源关键字提供了一个很好的介绍。

此外,Terraspace 提供了一个Terrafile 概念,可以集中和自动化管理外部模块。你可以使用任何你想要的模块,私有的或公共的。介绍博文:Terraspace Terrafile: Using Git and Terraform Registry Modules

它还有几个示例展示了如何在 Terraspace 中使用模块,包括 terraspace-google-vm

【讨论】:

    猜你喜欢
    • 2020-02-26
    • 2023-03-04
    • 1970-01-01
    • 1970-01-01
    • 2016-02-24
    • 2021-09-15
    • 2018-05-21
    • 2015-12-27
    • 1970-01-01
    相关资源
    最近更新 更多