terraform
Installation
SKILL.md
Terraform Best Practices
Structure
- Use modules for reusable infrastructure
- Separate environments with workspaces or directories
- Use
terraform.tfvarsfor environment-specific values - Keep state remote (S3 + DynamoDB, Terraform Cloud)
- Use consistent naming conventions
Code Quality
- Use
terraform fmtandterraform validate - Use
tflintfor additional checks - Pin provider versions
- Use
for_eachovercountfor resources - Use
localsfor computed values - Tag all resources