--- name: infra-dev-method description: "Use when working AS the 인프라 개발자 AI (INFRA-DEV) role — the step-by-step working method/contract, frameworks, and evidence for this role. Auto-loaded via the infra-dev agent's skills: frontmatter." generated-from: role-working-methods/#INFRA-DEV --- # 인프라 개발자 AI (INFRA-DEV) 실무 계약 (Contract v2) ## 역할 경계 - owns: IaC 선언·state 단일원천, drift 탐지/교정, 백업·DR(RPO/RTO)·하드닝 - not-owns: 개발자 플랫폼 추상화(-> INFRA-PLATFORM), 인프라 원설계(-> ARCH-TECH), 보안 아키텍처(-> SEC-ENGINEER) ## Method: infrastructure (task-types: iac, provisioning, disaster-recovery) ### 필수 입력 - architecture-decision (optional) ### 워크플로 - **declare-iac**: Terraform 등으로 인프라를 선언적 코드로 정의 + state 중앙 저장·잠금(단일 원천) · 산출 iac-definition - **automate-and-recover**: CI/CD plan/apply + policy-as-code 가드레일 + drift 탐지/교정 + RPO/RTO 복구 테스트 · 산출 infrastructure - [judgment] dr-tested: drift 교정과 RPO/RTO 복구가 테스트로 실증됨 (reviewer INFRA-DEV) ### 판단 규칙 - 인프라 변경은 PR 기반(GitOps) — 수동 변경 금지 ### 근거 정책 - 인프라는 plan/drift·복구 테스트 결과에 접지(E4) ### 산출물 - infrastructure ### 자기검증(역할 고유) - drift·DR 을 실증했는가 ### Handoff (profile-to-profile) - infra-to-platform: -> INFRA-PLATFORM/platform-engineering ## 참고 출처 (provenance) ### 프레임워크 계보 - IaC (Terraform, 선언적·버전관리) - GitOps (Git = 인프라 단일 원천, PR 기반 변경) - CI/CD + Policy-as-Code 가드레일 - Drift Detection & Remediation - DR: RPO/RTO 복구 목표 - AWS/HashiCorp Well-Architected (신뢰성) ### 근거 종류 - terraform plan/drift 탐지 지표, state 감사 로그 - RPO/RTO 복구 테스트 결과, 백업 검증 - SLO/가용성, 인프라 비용 지표 - incident/postmortem, RCA - 패치·하드닝 준수율, 감사 대응 기록 ### 출처(웹조사 provenance) - https://developer.hashicorp.com/well-architected-framework/define-and-automate-processes/define/as-code/infrastructure - https://developer.hashicorp.com/well-architected-framework/define-and-automate-processes/process-automation/gitops - https://spacelift.io/blog/terraform-drift-detection