From modernization
Plans AWS production cutovers using Blue/Green, Canary (1%→10%→50%→100%), or DNS strategies on ALB/Route53. Defines rollback triggers (SLOs, errors, latency), DMS zero-downtime data sync, and validation checklists for legacy-to-containerized migrations.
npx claudepluginhub aws-samples/sample-oh-my-aidlcops --plugin modernizationThis skill is limited to using the following tools:
- `containerization-report.md` 가 존재하고 이미지가 ECR 에 푸시되어 ECS/EKS 에 배포 가능한 상태일 때
Guides Next.js Cache Components and Partial Prerendering (PPR): 'use cache' directives, cacheLife(), cacheTag(), revalidateTag() for caching, invalidation, static/dynamic optimization. Auto-activates on cacheComponents: true.
Processes PDFs: extracts text/tables/images, merges/splits/rotates pages, adds watermarks, creates/fills forms, encrypts/decrypts, OCRs scans. Activates on PDF mentions or output requests.
Share bugs, ideas, or general feedback.
containerization-report.md 가 존재하고 이미지가 ECR 에 푸시되어 ECS/EKS 에 배포 가능한 상태일 때.omao/plans/modernization/containerization-report.md 존재aidlc-construction/skills/risk-discovery 재실행 PASS (DB·세션·외부 연동 리스크 4축)| 전략 | 특징 | 적합 조건 | 롤백 시간 |
|---|---|---|---|
| Canary | ALB weighted (1→10→50→100%) | Default 권장, 리스크 분산 | 즉시 (weight 조정) |
| Blue/Green | 100% 즉시 전환 | 충분한 사전 테스트, 빠른 컷오버 필요 | 즉시 (DNS/listener) |
| Rolling | 인스턴스 단위 교체 | 추가 자원 확보 어려울 때 | 느림 (인스턴스별 롤백) |
선택 근거를 반드시 cutover-plan.md 에 기록합니다.
권장 가중치 진행:
Step A: Blue 99% / Green 1% — 30 min 관측
Step B: Blue 90% / Green 10% — 1 hour 관측
Step C: Blue 50% / Green 50% — 2 hour 관측
Step D: Blue 0% / Green 100% — 24 hour 관측
ALB Weighted Target Group 전환 예시:
aws elbv2 modify-listener \
--listener-arn ${LISTENER_ARN} \
--default-actions '[{
"Type":"forward",
"ForwardConfig":{
"TargetGroups":[
{"TargetGroupArn":"'${BLUE_TG}'","Weight":90},
{"TargetGroupArn":"'${GREEN_TG}'","Weight":10}
]
}
}]'
다음 3축 중 하나라도 임계값 초과 시 자동 롤백 을 발동합니다.
| 메트릭 | 임계값 (Green TG) | 관측 기간 | 액션 |
|---|---|---|---|
| HTTP 5xx rate | > 1% | 5 min | Revert to Blue 100% |
| P99 Latency | > 1.5× baseline | 5 min | Revert to Blue 100% |
| SLO Error Budget | 시간당 10% 소모 | 10 min | Pause + Executive 승인 요청 |
| DB Replica lag | > 60s | 1 min | Data sync 중단 + 수동 개입 |
CloudWatch Alarm → EventBridge → Lambda (가중치 되돌림) 파이프라인으로 자동화합니다.
기존 DB 가 Oracle/MySQL 등 다른 엔진이거나 region 이동이 있는 경우 DMS zero-downtime migration 을 사용합니다.
DMS CLI 예:
aws dms start-replication-task \
--replication-task-arn ${TASK_ARN} \
--start-replication-task-type start-replication
컷오버 개시 전 반드시 확인합니다.
.omao/plans/modernization/cutover-runbook.md)Green 100% 도달 후 24h 이내 확인합니다.
audit.md 에 컷오버 타임라인 기록.omao/plans/modernization/cutover-plan.md 에 다음을 포함합니다.
# Cutover Plan
- strategy: Canary (1→10→50→100)
- sync_tool: DMS Full Load + CDC
- rollback_triggers: (Step 3 표)
- pre_cutover_checklist: (Step 6)
- post_cutover_checklist: (Step 7)
- maintenance_window: 2026-05-10 02:00 KST (2h)
- stakeholders: [CTO, SRE Lead, DBA, Support]
- runbook_link: cutover-runbook.md
- operations_handoff: agenticops plugin (operations-phase)
audit-trail (agenticops) 을 호출하여 컷오버 종료 증거를 audit.md 에 고정합니다. 이후 운영은 agenticops 플러그인의 operations-phase 로 승계됩니다.
../containerization/SKILL.md — 선행 skill../../CLAUDE.md — modernization 플러그인 개요/home/ubuntu/workspace/oh-my-aidlcops/plugins/agenticops/CLAUDE.md — Operations 핸드오프