我最喜欢的 Terraform 编码规则
原文英文,约200词,阅读约需1分钟。发表于: 。The naming convention for our Terraform environment was one of our favorites because it clearly indicated the declaration location. So, I built my favorite terraform coding rule via...
文章介绍了通过tflint插件实现Terraform环境命名规则。每个资源需在其资源名称文件中定义,变量、局部变量、输出、提供者、模块等在特定.tf文件中定义。优点是便于搜索和审查,缺点是未分割的tfstate可能导致资源集中。作者欢迎反馈。