terraform 几个方便的工具

几个方便的terraform 工具,方便了解terraform

terraform-docs

方便的查看资源的信息(支持markdown,json 格式),对于ci/cd 很方便

  • 项目地址
https://github.com/segmentio/terraform-docs
  • 安装
    for mac
brew install terraform-docs
  • 使用
    markdown 格式
terraform-docs md ./ > info.md
  • 使用效果

terraform-landscape

  • 项目地址
https://github.com/coinbase/terraform-landscape
  • 安装
    for mac
brew install terraform_landscape
  • 使用

    同时也可以使用docker 运行

terraform plan | landscape
  • 效果
-/+ random_string.id (new resource required)
    id: "none" => "<computed>" (forces new resource)
    length: "32" => "40" (forces new resource)
    result: "AeFw]#6iln(-Rk8MwwOVtZZuj2u*G#@Z" => "<computed>"

Plan: 1 to add, 0 to change, 1 to destroy.

tfenv

Terraform 版本管理的

tflint

方便检查我们的tf 文件编写是否有问题

  • 项目地址
https://github.com/wata727/tflint
  • 安装
    for mac
brew install tflint
  • 使用
tflint

blast-radius

图像可视化交互terraform 定义的资源

  • 项目地址
https://github.com/28mm/blast-radius

参考资料

https://github.com/28mm/blast-radius
https://github.com/wata727/tflint
https://github.com/coinbase/terraform-landscape
https://github.com/segmentio/terraform-docs

posted on   荣锋亮  阅读(2719)  评论(0编辑  收藏  举报

编辑推荐:
· 记一次.NET内存居高不下排查解决与启示
· 探究高空视频全景AR技术的实现原理
· 理解Rust引用及其生命周期标识(上)
· 浏览器原生「磁吸」效果!Anchor Positioning 锚点定位神器解析
· 没有源码,如何修改代码逻辑?
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
历史上的今天:
2017-03-19 caddy server 了解
2014-03-19 使用jsonp进行跨站点数据访问

导航

< 2025年3月 >
23 24 25 26 27 28 1
2 3 4 5 6 7 8
9 10 11 12 13 14 15
16 17 18 19 20 21 22
23 24 25 26 27 28 29
30 31 1 2 3 4 5
点击右上角即可分享
微信分享提示