Terraform Best Practices & IaC Automation

•
40k
•

Implements enterprise-grade Terraform and OpenTofu infrastructure-as-code patterns with a focus on modularity, testing, and CI/CD integration.

This skill equips Claude with comprehensive guidance for managing infrastructure via Terraform and OpenTofu, drawing from industry standards like terraform-best-practices.com. It provides expert advice on directory structuring, naming conventions, resource ordering, and complex logic like count vs for_each. Whether you are setting up a new multi-environment project, refactoring modules, or implementing robust testing pyramids—from static analysis to Terratest—this skill ensures your infrastructure is scalable, secure, and production-ready.

主要功能

01CI/CD workflow integration for GitHub Actions and GitLab
02Standardized naming conventions and resource block ordering
03Multi-environment module architecture and directory structuring
04Native Terraform 1.6+ testing framework and mocking patterns
05Automated security scanning with Trivy and Checkov integration
0640,309 GitHub stars

使用场景

01Scaffolding a new production-ready Terraform module with standardized structure
02Refactoring legacy infrastructure to use stable resource addressing with for_each
03Implementing a comprehensive IaC testing strategy to prevent deployment regressions