/modernization:cutover-planning [strategy (canary|blue-green|rolling), sync-tool (dms|native-replication|dual-write)]from modernization
Plans production traffic cutover from legacy to modernized environments using Blue/Green, Canary (1%→10%→50%→100%), or Rolling strategies on ALB/Route53. Defines rollback triggers tied to SLO metrics, coordinates DMS zero-downtime data migration, and provides a post-cutover validation checklist.
Ships in modernization. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
containerization-report.md 가 존재하고 이미지가 ECR 에 푸시되어 ECS/EKS 에 배포 가능한 상태일 때.omao/plans/modernization/containerization-report.md 존재aidlc/skills/construction/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 핸드오프What SKILL.md sets; muted values are Claude Code's defaults
claude-opus-4-7Three short reads, in order
AWS, Docker, PostgreSQL, MySQL
5 skills in this plugin
/containerizationContainerize legacy applications with production-grade defaults — multi-stage Dockerfile, docker buildx multi-arch (amd64/arm64), Trivy/grype security scanning, Health Check, non-root user, minimal base (distroless/alpine), ECR push automation, and ECS/EKS manifest templates. Use after to-be-architecture is approved and risk-discovery PASSes./modernization-strategyDecide the 6R modernization pattern — Rehost / Replatform / Refactor / Repurchase / Retire / Retain — using a decision tree and cost/time/risk matrix. Produces a defensible strategy-decision.md that justifies the selected pattern with quantitative evidence. Use after workload-assessment and before to-be-architecture./npx claudepluginhub aws-samples/sample-oh-my-aidlcops --plugin modernizationOther plugins' skills for the same job