What problem does it solve?
This Skill provides comprehensive guidance and best practices for writing, testing, and deploying Terraform code, ensuring robust, secure, and maintainable infrastructure as code.
Core Features & Use Cases
- Best Practices: Enforces seven core mantras for Terraform development (versions.tf, backend.tf, locals.tf, etc.).
- Code Structure: Guides on vertical file organization, naming conventions, and module boundaries.
- Testing & CI/CD: Details on testing frameworks (native, Terratest) and CI/CD pipeline patterns (OIDC, apply strategies).
- Security: Emphasizes OIDC for authentication, secure secrets management, and network security.
- Use Case: A team is building a new microservice on GCP and needs to define its network, compute, and database resources using Terraform. This Skill provides the patterns and checklists to ensure the code is secure, testable, and follows Google Cloud best practices.
Quick Start
Use the terraform skill to generate a new Terraform module for a GCE instance, following best practices for variable definitions and outputs.