DevOps IaC Engineer
This Skill helps DevOps teams design, implement, and maintain cloud infrastructure using Infrastructure as Code principles. Use this when building cloud architectures, deploying containerized applications, setting up CI/CD pipelines, or implementing observability and security practices.
Quick Navigation
- Terraform & IaC: See terraform.md for Terraform best practices and patterns
- Kubernetes & Containers: See kubernetes.md for container orchestration
- Cloud Platforms: See cloud_platforms.md for AWS, Azure, GCP guidance
- CI/CD Pipelines: See cicd.md for pipeline design and GitOps
- Observability: See observability.md for monitoring and logging
- Security: See security.md for DevSecOps practices
- Templates & Tools: See templates.md for ready-to-use templates
Core Principles
Key DevOps Terminology (Consistent Throughout)
- Infrastructure as Code (IaC): Managing infrastructure through declarative code files
- GitOps: Using Git as the single source of truth for infrastructure and applications
- Immutable Infrastructure: Infrastructure components that are replaced rather than modified
- Service Mesh: Infrastructure layer for service-to-service communication
- Observability: Ability to understand system state from external outputs (logs, metrics, traces)
- SLI/SLO/SLA: Service Level Indicators/Objectives/Agreements for reliability
- RTO/RPO: Recovery Time Objective/Recovery Point Objective for disaster recovery
Workflow: Infrastructure Implementation
When implementing infrastructure, follow this structured approach:
Understand Requirements
- What is the business need? (new application, migration, scaling, compliance)
- What are the scale requirements? (traffic, data, geographic distribution)
- What are the constraints? (budget, timeline, regulatory)
- What are the dependencies? (existing systems, data sources)
Design Architecture
- Choose appropriate cloud platform(s) and services
- Design for high availability and fault tolerance
- Plan network topology and security boundaries
- Identify data flows and storage requirements
- Document architecture with diagrams
Select IaC Tools
- Terraform for multi-cloud infrastructure provisioning
- Kubernetes manifests/Helm for container orchestration
- CI/CD tool selection based on team and requirements
- Configuration management tools if needed
Implement Infrastructure
- Create modular, reusable IaC code
- Follow security best practices (see security.md)
- Implement proper state management and versioning
- Use consistent naming and tagging conventions
- Document code and create README files
Set Up Observability
- Define SLIs and SLOs for critical services
- Implement logging, metrics, and tracing
- Create dashboards and alerts
- Set up log aggregation and analysis
- Plan on-call rotation and runbooks
Implement CI/CD
- Design deployment pipeline stages
- Implement automated testing (unit, integration, e2e)
- Set up GitOps workflows
- Configure deployment strategies (blue/green, canary)
- Implement rollback procedures
Test & Validate
- Run infrastructure tests (security, compliance, cost)
- Perform disaster recovery drills
- Load testing and performance validation
- Security scanning and penetration testing
- Document test results and improvements
Deploy & Monitor
- Execute phased rollout
- Monitor metrics and logs closely
- Validate against SLOs
- Document runbooks and troubleshooting guides
- Conduct post-deployment review
Decision Framework: Tool Selection
Multi-Cloud Requirements → Terraform or Pulumi
AWS-Only → Terraform, AWS CDK, or CloudFormation
Container Orchestration → Kubernetes (EKS, GKE, AKS)
Simple Container Deployment → ECS, Cloud Run, or App Service
Configuration Management → Ansible or cloud-native solutions
GitOps Workflows → ArgoCD or Flux
CI/CD Pipelines → GitHub Actions, GitLab CI, or Jenkins
Common Challenges & Solutions
Problem: Infrastructure drift between code and reality
Solution: Implement automated drift detection, use terraform plan in CI/CD, enable read-only production access, maintain state file integrity
Problem: Secrets management and credential exposure
Solution: Use cloud-native secret managers (AWS Secrets Manager, HashiCorp Vault), implement SOPS for encrypted secrets in Git, use IRSA/workload identity
Problem: High cloud costs and unexpected bills
Solution: Implement tagging strategy, use cost allocation tags, set up budget alerts, right-size resources, use spot instances, implement auto-scaling
Problem: Complex Kubernetes configurations
Solution: Use Helm charts for templating, implement Kustomize for environment-specific configs, follow GitOps patterns, use operators for complex workloads
Collaboration Tips
- With Development Teams: Provide self-service platforms, document APIs, share infrastructure as reusable modules
- With Security Teams: Implement policy as code, automate compliance checks, provide audit trails
- With SRE Teams: Define SLIs/SLOs together, share on-call responsibilities, collaborate on incident response
- With Finance Teams: Provide cost visibility, forecast expenses, implement chargeback models
Next Steps
- Start with terraform.md if you're implementing infrastructure as code
- Use kubernetes.md for container orchestration
- Reference templates.md for ready-to-use configurations
- Check observability.md to set up monitoring
Note: Always verify current infrastructure state, security requirements, and compliance needs before implementing changes. This Skill provides frameworks and best practices but should be adapted to your organization's specific requirements.
1---2name: devops-iac-engineer3description: Implements infrastructure as code using Terraform, Kubernetes, and cloud platforms. Designs scalable architectures, CI/CD pipelines, and observability solutions. Provides security-first DevOps practices and site reliability engineering guidance.4---5
6# DevOps IaC Engineer
7
8This Skill helps DevOps teams design, implement, and maintain cloud infrastructure using Infrastructure as Code principles. Use this when building cloud architectures, deploying containerized applications, setting up CI/CD pipelines, or implementing observability and security practices.
9
10## Quick Navigation
11
12- **Terraform & IaC**: See [terraform.md](reference/terraform.md) for Terraform best practices and patterns
13- **Kubernetes & Containers**: See [kubernetes.md](reference/kubernetes.md) for container orchestration
14- **Cloud Platforms**: See [cloud_platforms.md](reference/cloud_platforms.md) for AWS, Azure, GCP guidance
15- **CI/CD Pipelines**: See [cicd.md](reference/cicd.md) for pipeline design and GitOps
16- **Observability**: See [observability.md](reference/observability.md) for monitoring and logging
17- **Security**: See [security.md](reference/security.md) for DevSecOps practices
18- **Templates & Tools**: See [templates.md](reference/templates.md) for ready-to-use templates
19
20## Core Principles
21
22### Key DevOps Terminology (Consistent Throughout)
23- **Infrastructure as Code (IaC)**: Managing infrastructure through declarative code files
24- **GitOps**: Using Git as the single source of truth for infrastructure and applications
25- **Immutable Infrastructure**: Infrastructure components that are replaced rather than modified
26- **Service Mesh**: Infrastructure layer for service-to-service communication
27- **Observability**: Ability to understand system state from external outputs (logs, metrics, traces)
28- **SLI/SLO/SLA**: Service Level Indicators/Objectives/Agreements for reliability
29- **RTO/RPO**: Recovery Time Objective/Recovery Point Objective for disaster recovery
30
31### Workflow: Infrastructure Implementation
32
33When implementing infrastructure, follow this structured approach:
34
351. **Understand Requirements**
36 - What is the business need? (new application, migration, scaling, compliance)
37 - What are the scale requirements? (traffic, data, geographic distribution)
38 - What are the constraints? (budget, timeline, regulatory)
39 - What are the dependencies? (existing systems, data sources)
40
412. **Design Architecture**
42 - Choose appropriate cloud platform(s) and services
43 - Design for high availability and fault tolerance
44 - Plan network topology and security boundaries
45 - Identify data flows and storage requirements
46 - Document architecture with diagrams
47
483. **Select IaC Tools**
49 - Terraform for multi-cloud infrastructure provisioning
50 - Kubernetes manifests/Helm for container orchestration
51 - CI/CD tool selection based on team and requirements
52 - Configuration management tools if needed
53
544. **Implement Infrastructure**
55 - Create modular, reusable IaC code
56 - Follow security best practices (see [security.md](reference/security.md))
57 - Implement proper state management and versioning
58 - Use consistent naming and tagging conventions
59 - Document code and create README files
60
615. **Set Up Observability**
62 - Define SLIs and SLOs for critical services
63 - Implement logging, metrics, and tracing
64 - Create dashboards and alerts
65 - Set up log aggregation and analysis
66 - Plan on-call rotation and runbooks
67
686. **Implement CI/CD**
69 - Design deployment pipeline stages
70 - Implement automated testing (unit, integration, e2e)
71 - Set up GitOps workflows
72 - Configure deployment strategies (blue/green, canary)
73 - Implement rollback procedures
74
757. **Test & Validate**
76 - Run infrastructure tests (security, compliance, cost)
77 - Perform disaster recovery drills
78 - Load testing and performance validation
79 - Security scanning and penetration testing
80 - Document test results and improvements
81
828. **Deploy & Monitor**
83 - Execute phased rollout
84 - Monitor metrics and logs closely
85 - Validate against SLOs
86 - Document runbooks and troubleshooting guides
87 - Conduct post-deployment review
88
89### Decision Framework: Tool Selection
90
91**Multi-Cloud Requirements** → Terraform or Pulumi
92**AWS-Only** → Terraform, AWS CDK, or CloudFormation
93**Container Orchestration** → Kubernetes (EKS, GKE, AKS)
94**Simple Container Deployment** → ECS, Cloud Run, or App Service
95**Configuration Management** → Ansible or cloud-native solutions
96**GitOps Workflows** → ArgoCD or Flux
97**CI/CD Pipelines** → GitHub Actions, GitLab CI, or Jenkins
98
99## Common Challenges & Solutions
100
101**Problem**: Infrastructure drift between code and reality
102**Solution**: Implement automated drift detection, use terraform plan in CI/CD, enable read-only production access, maintain state file integrity
103
104**Problem**: Secrets management and credential exposure
105**Solution**: Use cloud-native secret managers (AWS Secrets Manager, HashiCorp Vault), implement SOPS for encrypted secrets in Git, use IRSA/workload identity
106
107**Problem**: High cloud costs and unexpected bills
108**Solution**: Implement tagging strategy, use cost allocation tags, set up budget alerts, right-size resources, use spot instances, implement auto-scaling
109
110**Problem**: Complex Kubernetes configurations
111**Solution**: Use Helm charts for templating, implement Kustomize for environment-specific configs, follow GitOps patterns, use operators for complex workloads
112
113## Collaboration Tips
114
115- **With Development Teams**: Provide self-service platforms, document APIs, share infrastructure as reusable modules
116- **With Security Teams**: Implement policy as code, automate compliance checks, provide audit trails
117- **With SRE Teams**: Define SLIs/SLOs together, share on-call responsibilities, collaborate on incident response
118- **With Finance Teams**: Provide cost visibility, forecast expenses, implement chargeback models
119
120---
121
122## Next Steps
123
1241. Start with [terraform.md](reference/terraform.md) if you're implementing infrastructure as code
1252. Use [kubernetes.md](reference/kubernetes.md) for container orchestration
1263. Reference [templates.md](reference/templates.md) for ready-to-use configurations
1274. Check [observability.md](reference/observability.md) to set up monitoring
128
129**Note**: Always verify current infrastructure state, security requirements, and compliance needs before implementing changes. This Skill provides frameworks and best practices but should be adapted to your organization's specific requirements.