Section:
cloud/| Subsection:iac/
Alignment: TOGAF ADM | NIST CSF | ISO 27001 | AWS Well-Architected | AI-Native Extensions
Overview
Terraform module design, state management, Terragrunt patterns, CDK vs. Terraform trade-offs.
This document is part of the Cloud Architecture body of knowledge within the Ascendion Architecture Best-Practice Library. It provides comprehensive, practitioner-grade guidance aligned to industry standards and extended for AI-augmented, agentic, and LLM-driven design contexts.
Core Principles
1. Intentional Design for Infrastructure as Code
Every aspect of infrastructure as code must be deliberately designed, not discovered after deployment. Document design decisions as ADRs with explicit rationale.
2. Consistency Across the Portfolio
Apply infrastructure as code practices consistently across all systems. Inconsistent application creates governance blind spots and makes incident investigation unpredictable.
3. Alignment to Business Outcomes
Infrastructure as Code practices must demonstrably contribute to business outcomes: reduced downtime, faster delivery, lower operational cost, or improved compliance posture.
4. Evidence-Based Quality Assessment
Quality of infrastructure as code implementation must be measurable. Define specific metrics and collect evidence continuously — not only at audit or review time.
5. Continuous Evolution
Standards for infrastructure as code evolve as technology and threat landscapes change. Schedule quarterly reviews of applicable standards and update practices accordingly.
Implementation Guide
Step 1: Current State Assessment
Document the current state of infrastructure as code practice: what is implemented, what is missing, what is inconsistent across teams. Use the governance/scorecards section for a structured assessment framework.
Step 2: Gap Analysis Against Standards
Compare current state against the standards in this section and applicable frameworks (AWS Well-Architected Framework, Azure Architecture Center). Prioritize gaps by business impact and remediation effort.
Step 3: Design the Target State
Define the target infrastructure as code state: which patterns will be adopted, which anti-patterns eliminated, which governance mechanisms introduced. Express as a time-bound roadmap.
Step 4: Incremental Implementation
Implement infrastructure as code improvements incrementally: pilot with one team or system, measure outcomes, refine the approach, then expand. Avoid big-bang transformations.
Step 5: Validate and Iterate
Measure the impact of implemented changes against defined success criteria. Incorporate lessons learned into the practice standards. Contribute improvements back to this library.
Governance Checkpoints
| Checkpoint | Owner | Gate Criteria | Status |
|---|---|---|---|
| Current State Documented | Solution Architect | Infrastructure as Code current state assessment completed and reviewed | Required |
| Gap Analysis Reviewed | Architecture Review Board | Gap analysis reviewed and prioritization approved | Required |
| Implementation Plan Approved | Enterprise Architect | Target state and roadmap approved by ARB | Required |
| Quality Metrics Defined | Solution Architect | Measurable success criteria defined for infrastructure as code improvements | Required |
Recommended Patterns
Reference Architecture Adoption
Start from an established reference architecture for infrastructure as code rather than designing from scratch. Adapt to organizational context rather than rebuilding proven foundations.
Pattern Library Contribution
When your team solves a recurring infrastructure as code problem with a novel approach, document it as a pattern for the library. This compounds organizational knowledge over time.
Fitness Function Testing
Encode infrastructure as code standards as automated architectural fitness functions — tests that run in CI/CD and fail builds when standards are violated. This makes governance continuous rather than periodic.
Anti-Patterns to Avoid
⚠️ Standards Theater
Documenting infrastructure as code standards in architecture policies that no one reads and no one enforces. Standards without automated validation or governance gates are not operational standards.
⚠️ Copy-Paste Architecture
Adopting another organization's infrastructure as code patterns wholesale without adapting to organizational context, team capability, or regulatory environment. Always adapt; never just copy.
AI Augmentation Extensions
AI-Assisted Standards Review
LLM agents analyze design documents against infrastructure as code standards, generating structured gap reports with cited evidence and suggested remediation approaches.
Note: AI review accelerates governance but does not replace expert architectural judgment. Use as a first-pass filter before human review.
RAG Integration for Infrastructure as Code
This section is optimized for vector ingestion into an AI-powered architecture assistant. Semantic search enables architects to retrieve relevant infrastructure as code guidance through natural language queries.
Note: Reindex the vector store whenever section content is updated to ensure retrieved guidance reflects current standards.
Related Sections
principles/foundational | patterns/structural | governance/review-templates | adrs/platform
References
- AWS Well-Architected Framework — aws.amazon.com
- Azure Architecture Center — docs.microsoft.com
- GCP Architecture Framework — cloud.google.com
- CNCF Cloud Native Trail Map — cncf.io
- Documenting Software Architectures — Bass, Clements, Kazman — Amazon
- Building Evolutionary Architectures — Ford, Parsons, Kua — O'Reilly
Last updated: 2025 | Maintained by: Ascendion Solutions Architecture Practice
Section: cloud/iac/ | Aligned to TOGAF · NIST · ISO 27001 · AWS Well-Architected