当运行terragrunt apply命令时,代码会找到在terragrunt.hcl文件中的source参数,接下来Terragrunt将执行以下操作。...Terragrunt还可以保持backend配置的简洁。不必为每个模块重复定义bucket、key、dynamodb_table等参数。而是在每个环境下的terragrunt.hcl文件中进行定义。...key值中使用Terragrunt内置函数path_relative_to_include()。这个函数返回此terragrunt.hcl根文件到包含这个文件的任何子模块之间的相对路径。...在include代码块中,通过使用Terragrunt内置函数find_in_parent_folders()找到根目录的terragrunt.hcl文件。...要部署此模块,请运行terragrunt apply命令。
https://github.com/particuleio/teks/tree/main/terragrunt/live/thanos https://github.com/particuleio/terraform-kubernetes-addons...─ clusters │ │ └── observer │ │ ├── eks │ │ │ ├── kubeconfig │ │ │ └── terragrunt.hcl...│ │ ├── eks-addons │ │ │ └── terragrunt.hcl │ │ └── vpc │ │ └── terragrunt.hcl...│ ├── eks-addons │ │ └── terragrunt.hcl │ └── vpc │ └── terragrunt.hcl.../live/thanos/eu-west-1/clusters/observer https://github.com/particuleio/teks/tree/main/terragrunt/live
https://github.com/particuleio/teks/tree/main/terragrunt/live/thanos https://github.com/particuleio/terraform-kubernetes-addons...─ clusters │ │ └── observer │ │ ├── eks │ │ │ ├── kubeconfig │ │ │ └── terragrunt.hcl...│ │ ├── eks-addons │ │ │ └── terragrunt.hcl │ │ └── vpc │ │ └── terragrunt.hcl... │ ├── eks-addons │ │ └── terragrunt.hcl │ └── vpc │ └── terragrunt.hcl.../live/thanos/eu-west-1/clusters/observer https://github.com/particuleio/teks/tree/main/terragrunt/live
─ clusters │ │ └── observer │ │ ├── eks │ │ │ ├── kubeconfig │ │ │ └── terragrunt.hcl...│ │ ├── eks-addons │ │ │ └── terragrunt.hcl │ │ └── vpc │ │ └── terragrunt.hcl...│ ├── cluster_values.yaml │ ├── eks │ │ ├── kubeconfig │ │ └── terragrunt.hcl...│ ├── eks-addons │ │ └── terragrunt.hcl │ └── vpc │ └── terragrunt.hcl
https://github.com/particuleio/teks/tree/main/terragrunt/live/thanos https://github.com/particuleio/terraform-kubernetes-addons...─ clusters │ │ └── observer │ │ ├── eks │ │ │ ├── kubeconfig │ │ │ └── terragrunt.hcl...│ │ ├── eks-addons │ │ │ └── terragrunt.hcl │ │ └── vpc │ │ └── terragrunt.hcl... │ ├── cluster_values.yaml │ ├── eks │ │ ├── kubeconfig │ │ └── terragrunt.hcl... │ ├── eks-addons │ │ └── terragrunt.hcl │ └── vpc │ └── terragrunt.hcl
Terraform AWS CloudFormation Azure Resource Manager (ARM) Google Cloud Deployment Manager Pulumi Cloudify Terragrunt
epic5 jenkins mariadb podofo terragrunt
随之推出了与之对应的工具Terragrunt,Terragrunt 于 2018 年 11 月出现在了技术雷达,它包含了之前介绍过的“基础设施流水线”的思想。 ?...(2018年11月期技术雷达,blip72: Terragrunt, Assess) ---- 基础设施即代码的自动化测试 可测试性和自动化测试永远是技术雷达不可缺少的话题,基础设施即代码也是一样。...Librarian-puppet and Librarian-Chef,Masterless Chef/Puppet,Provisioning Testing,Testinfra,Serverspec,Terraform,Terragrunt
Terragrunt:是一个瘦包装器,它提供了额外的工具来保持配置干燥、使用多个 Terraform 模块以及管理远程状态。
问3:能说下Terraform 和 Terragrunt 的区别吗? 答:terragrunt 是一家咨询公司写的软件在terraform外边wrap了一层。
在本期雷达中,我们还会介绍两个新的云基础设施自动化工具:Terragrunt 和 Pulumi。 虽然我们支持通过粘性的高低来评估云提供商的新产品,但提醒你不要落入只使用通用云服务功能的陷阱。
这期的技术雷达介绍了Terragrunt,它是Terraform 的一个轻量级的封装,用来落地《 Terraform: Up and Running 》书中主张的实践。
虽然使用 Terragrunt 缓解了这一点,但我们的团队越来越渴望像现代编程语言所能提供的那种抽象性。
在本期雷达中,我们还会介绍两个新的云基础设施自动化工具:Terragrunt和Pulumi。虽然我们支持通过粘性的高低来评估云提供商的新产品,但提醒你不要落入只使用通用云服务功能的陷阱。
领取专属 10元无门槛券
手把手带您无忧上云