Infrastructure as Code Management (IaCM)
The Harness Infrastructure as Code Management (IaCM) module helps teams define, version control, and govern cloud infrastructure in a declarative manner.Core Features
Infrastructure Management
- Terraform Support: Full support for Terraform workflows
- Terragrunt Support: Manage complex Terraform module structures
- Multi-Cloud Support: AWS, Azure, GCP, and other major cloud platforms
- Blueprint Library: Pre-built infrastructure templates to accelerate configuration
Version Control
- Git Integration: All infrastructure changes managed through Git
- Change History: Complete audit trail
- Rollback Capability: Easily rollback to previous versions
- Code Review: Changes reviewed through PR workflow
Policy Governance
- OPA Integration: Enforce infrastructure security policies
- Compliance Checking: Ensure infrastructure meets industry standards
- Drift Detection: Identify deviations between actual and desired state
- Auto Remediation: Automatically fix infrastructure drift
Module Registry
- Modular Management: Register and reuse infrastructure modules
- Version Management: Manage different versions of modules
- Governance Rules: Set usage policies for modules
Use Cases
| Scenario | Description |
|---|---|
| Infrastructure Standardization | Unified infrastructure configuration across teams through blueprints |
| Compliance Governance | Ensure infrastructure meets security policies |
| Drift Management | Auto-detect and fix configuration drift |
| Cost Optimization | Identify unused resources |
Getting Started
1. Connect Infrastructure
Configure cloud account and infrastructure connectors.2. Create/Import Infrastructure
- Create new Terraform configuration
- Or import existing Terraform state
3. Define Infrastructure
Define resources using Terraform HCL:4. Configure Triggers
Set conditions for triggering infrastructure changes.5. Execute Plan
Review change preview and execute apply when confirmed.Drift Detection
IaCM provides automatic drift detection:| Feature | Description |
|---|---|
| Scheduled Detection | Execute drift detection on schedule |
| Manual Detection | Trigger detection anytime |
| Auto Remediation | Automatically fix detected drift |
Best Practices
- Modular Design: Create reusable Terraform modules
- State Management: Use remote state storage for team collaboration
- Change Review: All changes through PR workflow
- Policy First: Define policies before creating resources
- Monitor Drift: Regularly check infrastructure state