云迁移规划与执行
cloud-migration-planning
规划并执行云迁移,涵盖现状发现、迁移批次规划、数据迁移、割接切换和验证,覆盖 AWS/Azure/GCP 等云平台。
- License 许可
- MIT
- 最近更新
- 2026-08-03
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- cloud-migration-planning
- description
- Plan and execute cloud migrations with discovery, wave planning, data moves, cutover, and validation across AWS/Azure/GCP.
02 资源文件 2
- 参考文档agents/openai.yaml161 B
- 参考文档reference.md3.9 KB
03 SKILL.md 正文
Cloud Migration Planning (Concise)
When to use
- Moving on-prem to cloud, consolidating providers, modernizing legacy apps
- Needing phased moves with rollback + telemetry (OpenTelemetry/OpenLIT) and SkyPilot offloading
- Planning DR/regional failover or cost-optimization migrations
Fast workflow
- Discovery: inventory apps, data stores, RPO/RTO, deps, latency/SLA, compliance.
- Strategy: choose per workload: lift/shift, replatform, refactor, retire. Define success metrics (perf, error rate, cost delta, SLOs) and rollback gates.
- Wave plan: low-risk first, honor dependencies, add dress rehearsals. Keep canary users and SLO monitors.
- Data move: select path per store:
- OLTP: DMS/CDC (AWS), Database Migration Service (GCP), DMS MI (Azure), or native logical replication; dual-write only with conflict rules.
- Analytics: batch rsync + manifest, Snowpipe/BigQuery load jobs; checksum samples.
- Blobs: parallel sync (S3->GCS/Azure) + versioning; signed-URL/ACL parity.
- Infra: stand up target infra as code (Terraform/CloudFormation/Bicep). Keep secrets in manager (SM/KeyVault/SM+KMS). Enable tracing/logs early.
- Cutover: freeze writes, drain queues, final CDC catch-up, swap DNS/conn strings, run smoke + synthetic, watch error budget; have rollback timer.
- Post: backfill stragglers, decommission safely, cost and perf tune, DR rehearsal.
Minimal AWS playbook
- DMS quick start (conceptual):
- Create replication instance (private, multi-AZ if needed), source/target endpoints, and task
full-load-and-cdcwith table mappings. - Monitor
ReplicationTaskStats(lag, failures) and CloudWatch alarms; wire OpenTelemetry exporter if available.
- Create replication instance (private, multi-AZ if needed), source/target endpoints, and task
- Terraform shape (high level): VPC + subnets, DMS subnet group, replication instance, endpoints, task, Secrets Manager for creds, CloudWatch log group + alarm. Keep SG least-privilege.
- S3/object moves:
aws s3 sync --delete --exact-timestamps; enable versioning + checksum validation. - Rollback: keep source writable snapshot/restore plan; DNS/conn string revert procedure pre-written.
Cutover checklist (short)
- Lag < 1s; last full backup validated; health checks green.
- Freeze writes; drain queues; pause batch jobs.
- Update secrets/conn strings; deploy feature flags for dual-read if used.
- Switch DNS/ALB target; run smoke + key user journeys; verify metrics: p95 latency, error rate, 5xx, DB locks, queue depth.
- Rollback trigger: error budget burn > threshold or data mismatch; revert DNS/traffic and unfreeze writes on source.
Validation & telemetry
- Data: row counts/hash samples before/after; CDC gap check; checksum object manifests.
- App: synthetic tests, golden path scripts, canary users; log anomaly detection; OpenTelemetry traces to OpenLIT backend.
- Ops: dashboards for DMS task status, replication lag, S3 transfer errors, DNS propagation, cost deltas.
Security & compliance
- Encrypt in transit (TLS) and at rest (KMS/Key Vault/CMK); rotate creds; least-priv SGs/IAM; redact PII in logs.
- Access via SSO/assumed roles; break-glass separate.
- Audit: trail of changes (IaC), change tickets, approvals.
Risk mitigations
- Run dress rehearsal in lower env with prod-like data slice.
- Dual-run read-only for a window; enable feature flags to fallback reads.
- Keep source warm until post-cutover validation passes + DR runbook updated.
Timelines (rule of thumb)
- Assessment 2-4w → Pilot 2-8w → Waves 8-16w → Optimization 4w+ → Closure 1-2w.
References
- AWS MAP, Azure CAF migrate, GCP Migration Center
- AWS DMS best practices: sizing, LOB handling, task logging
- DNS cutover: low TTL + health-checked targets
04 同仓库更多 Skills
next-workflow-step
Use this skill when the user wants to transition to the next workflow step, wrap up a session cleanly, prepare a handoff, or says things like "next step", "continue the workflow", "wrap up", "hand off", "move to the next phase", "what's next in embrace", or "prepare for /clear". Also triggers when the current octo:embrace phase appears complete and no explicit next action is set.
source-discovery
This skill should be used when the user asks to "find sources", "discover URLs", "catalog a source", "classify a URL", "search for libraries", "check what exists", or mentions source discovery, URL cataloging, source classification, or research source management.
review-synthesis
This skill should be used when the user asks to "summarize review findings", "prioritize fixes", "rank review issues", "combine reviewer feedback", "create action items from review", or mentions review synthesis, finding prioritization, severity ranking, or review result summarization.
research-scoring
This skill should be used when the user asks to "score research", "check research quality", "evaluate coverage", "measure improvement", "assess research completeness", or mentions research scoring, quality metrics, coverage gaps, improvement baseline, or research pipeline status.
notebooklm-integration
This skill should be used when the user asks to "ingest into NotebookLM", "query NotebookLM", "add sources to notebook", "cross-source synthesis", "check stale sources", or mentions NotebookLM, notebook integration, source ingestion, or knowledge consolidation.
evidence-synthesis
This skill should be used when the user asks to "synthesize findings", "combine research", "cross-reference sources", "summarize evidence", "write a deep review", or mentions evidence synthesis, finding consolidation, cross-source analysis, or research summarization.