Terraform Master Plugin
Complete Terraform expertise system for Claude Code. Provides comprehensive infrastructure-as-code guidance, version-aware code generation, multi-environment architecture, CI/CD integration, and industry best practices across Windows, Linux, and macOS.
Features
Comprehensive Provider Coverage
- Azure: AzureRM, AzAPI for all Azure resources
- AWS: Complete AWS service coverage
- Google Cloud: Full GCP resource support
- Community Providers: Kubernetes, Helm, Datadog, PagerDuty, GitHub, GitLab, and more
Enterprise Capabilities
- Multi-environment architecture patterns
- Multi-region deployment strategies
- Large-scale state management
- Module development and organization
- Landing zone implementations
- Service catalog patterns
Resource Import & State Management ⭐ NEW
- Import Existing Resources: Bring manual deployments under Terraform control
- Traditional imports and import blocks (Terraform 1.5+)
- Bulk import with Terraformer, aztfexport, custom scripts
- Migration from ARM templates, CloudFormation, manual provisioning
- State Operations: Complete state management
- Move, rename, and refactor resources
- Split/merge states
- Backup and recovery
- State inspection and troubleshooting
Version-Aware Operations
- Automatic version detection
- Breaking change awareness
- Upgrade path guidance
- Provider version management
- Migration assistance
Platform Support
- Windows: PowerShell-native, Git Bash/MINGW compatibility, path handling, credential management
- Linux: Package managers, permissions, environment configuration
- macOS: Homebrew integration, BSD utilities
- CI/CD: Azure DevOps, GitHub Actions, GitLab CI, Jenkins
- Cross-Platform Scripts: Shell detection and path conversion handling
Security & Compliance (2025)
- Trivy integration (tfsec functionality merged into Trivy in 2025)
- Checkov policy-as-code scanning (750+ policies)
- Terrascan compliance scanning
- NIST SP 800-53 Rev 5 Sentinel policies (350+ policies)
- Best practice enforcement
- Secrets management patterns
- Ephemeral values for secure secrets (Terraform 1.10+)
- Network security guidance
- Encryption standards
- HYOK (Hold Your Own Key) support
- Compliance validation
Installation
From Claude Code Marketplace
# In Claude Code
/plugin install terraform-master@claude-plugin-marketplace
Manual Installation
- Clone this repository or download the
terraform-master directory
- Add marketplace to Claude Code settings:
# In Claude Code
/plugin marketplace add local file:///path/to/claude-plugin-marketplace
/plugin install terraform-master@local
2025 Feature Highlights
Terraform 1.10+ Features
- Ephemeral Values: Secure secrets handling without persistence in state or plan files
- Write-Only Arguments: Accept ephemeral values in managed resources (Terraform 1.11+)
- Testing Framework: Native terraform test command with JUnit XML output (1.6+, enhanced 1.11+)
- Terraform Query: Execute list operations against existing infrastructure (Terraform 1.14+)
- Actions Blocks: Imperative operations outside CRUD model (Terraform 1.14+)
OpenTofu Alternative (2025)
- Open-Source Fork: MPL 2.0 licensed, Linux Foundation governance
- Latest Stable: OpenTofu 1.10.6 (Beta: 1.11.0-beta1)
- Built-in State Encryption: Client-side encryption without cloud costs
- Enhanced Import Blocks: Loop-able imports with for_each (1.7+)
- Early Variable Evaluation: Use variables in terraform blocks and module sources (1.8+)
- OpenTofu 1.10: OCI Registry support, native S3 locking (no DynamoDB), OpenTelemetry tracing
- OpenTofu 1.11 (Beta): Ephemeral resources, enabled meta-argument for conditional deployment
- 100% Compatible: Drop-in replacement for Terraform 1.5.x
- Fast Migration: < 1 hour for most projects, no code changes required
HCP Terraform 2025
- Terraform Stacks (GA): Multi-deployment orchestration, Linked Stacks for dependencies
- Module Lifecycle Management (GA): Revoke compromised modules, version control
- HYOK (Hold Your Own Key): Full control over encryption keys for state and plan files
- Private VCS Access: Direct private connections to VCS without public internet exposure
- AI Integration: Experimental MCP servers for AI-driven infrastructure automation
- Project Infragraph (Private Beta Dec 2025): Centralized data substrate for autonomous agents
Testing & Quality (2025)
- terraform test: Native testing framework with assertions and mocks (1.6+)
- JUnit XML Output: CI/CD test reporting integration (1.11+)
- Terratest: Go-based integration testing with real resources
- TDD/BDD: Test-driven development patterns and best practices