Logo Database Migration Service Expertise

Database Migration Service Expertise

Tổ chức
aws
database-migration-service-expertise

AWS Database Migration Service (DMS) operational review and troubleshooting skill. Conducts best practices validation, health assessments, performance diagnostics, cost optimization reviews, and migration cutover guidance. Triggers on requests like "DMS review", "DMS health check", "DMS troubleshooting", "migration assessment", "DMS best practices audit", "DMS cost optimization", "replication instance review", "CDC latency issue", or "DMS task failure".

Tổng quan

Nhà phát hànhaws
Kho mãtools-for-devops-agent
Tên kỹ năngdatabase-migration-service-expertise
Sao
120
Bản fork
97
Tệp đi kèm
10
Giấy phépApache-2.0
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 10 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được aws công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Database Migration Service Expertise trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/aws/tools-for-devops-agent/tree/main/skills/database-migration-service-expertise
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/aws/tools-for-devops-agent.git /tmp/tools-for-devops-agent
mkdir -p .claude/skills
cp -r /tmp/tools-for-devops-agent/skills/database-migration-service-expertise .claude/skills/database-migration-service-expertise
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Database Migration Service Expertise trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Database Migration Service Expertise ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Database Migration Service Expertise với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

AWS DMS Operational Review & Troubleshooting

Conduct comprehensive operational reviews, best practices validation, troubleshooting, and cost optimization assessments for AWS Database Migration Service (DMS) environments aligned with AWS Well-Architected principles.

When to Use

Activate this skill when the user asks to:

  • Review, audit, or assess DMS configurations
  • Check DMS best practices compliance
  • Troubleshoot DMS task failures, latency, or connectivity issues
  • Evaluate DMS cost optimization opportunities
  • Plan or execute a database migration cutover
  • Assess DMS version deprecations and upgrade paths
  • Run a pre-migration assessment
  • Evaluate DMS Serverless vs provisioned suitability
  • Investigate data validation mismatches
  • Review DMS homogeneous data migration options

Step 1: Identify Target Resources

Ask the user which DMS resources to review. Accept:

  • Specific replication instance names and regions
  • Specific replication task identifiers
  • "all instances" in a specific region
  • "all instances in all regions"

Query AWS APIs to discover DMS resources:

  • List replication instances across the configured account regions
  • List replication tasks and their states
  • List endpoints and connectivity status

Step 2: Collect DMS Configuration

For EACH replication instance and its associated tasks, gather the following data using AWS APIs.

2.1 Replication Instance Config

Engine version, instance class, Multi-AZ, storage, public accessibility, KMS encryption, auto-upgrade, VPC/subnet configuration, pending maintenance actions.

bash
aws dms describe-replication-instances --profile <profile> --region <region>
aws dms describe-pending-maintenance-actions --profile <profile> --region <region>

2.2 Replication Tasks

Task identifiers, status, migration type, table mappings, task settings, CDC start positions, last failure messages, stop reasons, replication task statistics.

bash
aws dms describe-replication-tasks --profile <profile> --region <region>

2.3 Endpoints

Endpoint identifiers, types (source/target), engine names, SSL mode, connection status, Secrets Manager integration, security group configurations.

bash
aws dms describe-endpoints --profile <profile> --region <region>
aws dms describe-connections --filter Name=endpoint-arn,Values=<endpoint-arn> --profile <profile> --region <region>

2.4 Table Statistics

Per-table state, row counts, validation state, error rows, DDL counts.

bash
aws dms describe-table-statistics --replication-task-arn <task-arn> --profile <profile> --region <region>

2.5 DMS Serverless (if applicable)

Replication configs, serverless replications, DCU utilization.

bash
aws dms describe-replication-configs --profile <profile> --region <region>
aws dms describe-replications --profile <profile> --region <region>

2.6 Version and Deprecation Data

Available engine versions, pending maintenance actions, AWS Health events.

bash
aws dms describe-orderable-replication-instances --query "OrderableReplicationInstances[*].EngineVersion" --profile <profile> --region <region>
aws health describe-events --filter '{"services":["DMS"],"eventTypeCategories":["scheduledChange"]}' --profile <profile> --region us-east-1

Note: AWS Health API is a global service and must be called with --region us-east-1 regardless of where DMS resources are deployed.

Step 3: Collect Observability Data (7-Day Historical)

3.1 CloudWatch Metrics (7 days)

Replication Instance Metrics (namespace: AWS/DMS):

  • CPUUtilization (Average, Maximum)
  • FreeableMemory (Average, Minimum)
  • SwapUsage (Average, Maximum)
  • DiskQueueDepth (Average, Maximum)
  • ReadIOPS / WriteIOPS (Average, Maximum)
  • ReadLatency / WriteLatency (Average, Maximum)
  • NetworkTransmitThroughput (Average)
  • NetworkReceiveThroughput (Average)

Task Metrics (namespace: AWS/DMS):

  • CDCLatencySource (Average, Maximum)
  • CDCLatencyTarget (Average, Maximum)
  • CDCIncomingChanges (Average, Maximum)
  • CDCChangesMemorySource (Average, Maximum)
  • CDCChangesDiskSource (Maximum)
  • CDCChangesDiskTarget (Maximum)
  • FullLoadThroughputBandwidthTarget (Average)
  • FullLoadThroughputRowsTarget (Average)

DMS Serverless (namespace: AWS/DMS, if applicable):

  • ServerlessTotalCapacityUnits (Average, Maximum)

3.2 CloudWatch Logs (7 days)

Query task logs for error patterns:

  • ERROR — general errors (count)
  • Network/connectivity errors (Network error, Connection lost, timeout)
  • Memory/resource errors (out of memory, OOM, swap)
  • CDC-specific errors (WAL, binlog, LogMiner patterns)
  • Data/constraint errors (truncation, constraint, duplicate key)

3.3 AWS Health Events

Query DMS scheduled changes and deprecation notices:

  • Upcoming engine version deprecations
  • Pending mandatory maintenance actions
  • Certificate expirations

Step 4: Analyze Against Best Practices

Evaluate ALL collected data against these categories. Assign severity to every finding: CRITICAL, HIGH, MEDIUM, LOW, or INFO.

Reference: references/dms-best-practices.md for detailed best practices. Reference: references/dms-validation-checklist.md for validation criteria and thresholds. Reference: references/dms-version-reference.md for version lifecycle and known issues.

4.1 Instance Health (25 points)

  • Instance status (must be "available")
  • Engine version currency (EOL → CRITICAL; not on latest or latest-1 active version → HIGH)
  • Instance class appropriate (CPU < 80%, Memory > 20% free)
  • Multi-AZ for production CDC tasks
  • Storage utilization (< 80%)
  • Not publicly accessible
  • KMS encryption enabled
  • Auto minor version upgrade enabled (non-prod)

4.2 Task Health (25 points)

  • Task status (running/stopped, not failed/error)
  • No tables in error/suspended state
  • Logging enabled on all tasks
  • CDC latency within thresholds (< 120s)
  • Recovery checkpoint exists
  • No full load error rows
  • Task settings follow best practices (LOB mode, parallelism, batch apply)

4.3 Endpoint Security (20 points)

  • SSL/TLS enabled on all endpoints (SslMode != "none")
  • Secrets Manager integration for credentials
  • Connection tests passing
  • Security groups restrict access (no 0.0.0.0/0)
  • VPC endpoints configured for AWS services
  • Private subnet placement (not publicly accessible)

4.4 Performance (15 points)

  • CPU utilization within thresholds (< 80% avg)
  • Freeable memory adequate (> 2 GB minimum)
  • No swap usage (SwapUsage = 0)
  • Disk queue depth normal (< 10)
  • No sustained disk-based CDC caching (CDCChangesDisk* = 0)
  • CDC throughput adequate for workload

4.5 Cost Efficiency (15 points)

  • No over-provisioned instances (CPU avg > 20% for 7+ days)
  • No idle instances (no running tasks for 7+ days)
  • Multi-AZ justified (production/critical only)
  • Debug logging disabled in production
  • Same-engine migrations using homogeneous/native tools where applicable
  • DMS Serverless evaluated for variable workloads

Step 5: Troubleshooting (When Applicable)

When the user reports an active issue, follow this structured approach:

Phase 0: Version Check (Always First)

Check DMS engine version and cross-reference with references/dms-version-reference.md for known bugs.

Phase 1: Error Classification

Route by error category:

Error PatternCategoryDiagnostic Path
Network error, Connection lost, timeoutConnectivityNetwork diagnostics
Memory, OOM, swap, disk fullResource ExhaustionInstance metrics
CDCLatency, falling behindPerformance/LatencyCDC metrics analysis
Data truncation, type mismatchData MismatchTable statistics
Table error, suspended, DDLTable-Level FailureTable reload
Credential, authentication, access deniedAuth/PermissionsEndpoint test
SSL, certificate, handshakeSSL/TLSCertificate check
Task stops without clear errorSilent FailureComprehensive check

Phase 2: Targeted Diagnostics

Follow the appropriate diagnostic path using AWS CLI commands to gather evidence.

Phase 3: Log Analysis

Query CloudWatch Logs with engine-specific filter patterns (Oracle/PostgreSQL/MySQL/SQL Server).

Step 6: Migration Cutover Guidance (When Applicable)

When the user is planning or executing a cutover:

Pre-Cutover Checklist (T-7 to T-1 days)

  • CDC latency at zero
  • No tables in error
  • Validation passing
  • No pending maintenance
  • Instance resources healthy
  • Recovery checkpoint exists
  • Target schema matches source
  • Application connection strings prepared
  • Rollback plan documented

Cutover Execution (T-0)

  1. Final latency check
  2. Stop application writes to source
  3. Wait for CDC to drain (zero latency)
  4. Run final validation
  5. Stop DMS task
  6. Switch application to target
  7. Validate application
  8. Monitor (T+0 to T+24h)

Rollback Procedure

Documented steps to revert to source if cutover fails.

Post-Cutover Cleanup (T+3 to T+7 days)

Resource deletion and documentation updates.

Step 7: Generate Report

Generate a separate shareable report artifact for EACH environment reviewed.

Artifact naming: dms-review-<instance-name>-<YYYY-MM-DD>.md Example: dms-review-prod-replication-2026-07-22.md

For each environment, create the artifact as a Markdown document with these sections:

Report Header

# DMS Operational Review — <instance-name>
Account: <account-id> | Region: <region> | Date: <YYYY-MM-DD> | Engine Version: <version>

Executive Summary

  • Environment health: ✅ HEALTHY / ⚠️ WARNINGS / ❌ CRITICAL
  • Health Score: XX/100 [Rating]
  • Finding counts by severity
  • Top 3 critical/high items

Health Score Breakdown

CategoryScoreKey Issues
Instance HealthXX/25[list issues]
Task HealthXX/25[list issues]
Endpoint SecurityXX/20[list issues]
PerformanceXX/15[list issues]
Cost EfficiencyXX/15[list issues]

Resource Inventory

Resource TypeCountStatus Summary

Findings by Category

For each of the 5 categories above, present:

#FindingSeverityCurrent StateRecommendation

CloudWatch Metrics (7-Day)

MetricCategory7-Day Avg7-Day MaxStatusFinding

CloudWatch Logs Analysis (7-Day)

PatternOccurrencesSeverityFinding

Version & Deprecation Status

All instances with version, EOL status, upgrade recommendations.

Cost Optimization Opportunities

#OpportunityResourceEstimated SavingsRisk Level

Priority Matrix

#FindingSeverityCategoryEffortImpact
All findings sorted by severity.

Next Steps

  • Immediate (CRITICAL/HIGH — 7 days)
  • Short-term (MEDIUM — 30 days)
  • Long-term (LOW — 90 days)

Appendix

Refer to the AWS DMS documentation for detailed guidance on best practices, monitoring, troubleshooting, release notes, serverless, and data validation.

Severity Definitions

SeverityDefinitionSLA
CRITICALImmediate risk to migration integrity, data loss, or security breachFix within 24-48 hours
HIGHSignificant gap that could lead to task failures or data issuesFix within 1 week
MEDIUMNotable improvement opportunity for performance or costPlan within 30 days
LOWMinor optimization or hardeningAddress when convenient
INFOObservation, no action requiredN/A

Health Score Formula

Scoring Categories (100 points total)

CategoryWeightScope
Instance Health25 ptsStatus, version, Multi-AZ, public access, storage, encryption
Task Health25 ptsTask status, table errors, CDC latency, logging
Endpoint Security20 ptsSSL mode, Secrets Manager, connectivity, SG rules
Performance15 ptsCPU, memory, swap, disk queue, CDC throughput
Cost Efficiency15 ptsRight-sizing, idle resources, Multi-AZ justification

Score Interpretation

ScoreRatingAction
90-100🟢 ExcellentMinor optimizations only
75-89🟡 GoodAddress warnings at next opportunity
60-74🟠 Needs AttentionPlan remediation within 1-2 weeks
40-59🔴 PoorImmediate action required on critical items
0-39⚫ CriticalMigration at risk — escalate immediately

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Database Migration Service Expertise làm được gì?

AWS Database Migration Service (DMS) operational review and troubleshooting skill. Conducts best practices validation, health assessments, performance diagnostics, cost optimization reviews, and migration cutover guidance. Triggers on requests like "DMS review", "DMS health check", "DMS troubleshooting", "migration assessment", "DMS best practices audit", "DMS cost optimization", "replication instance review", "CDC latency issue", or "DMS task failure".

Vì sao nên dùng Database Migration Service Expertise trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Database Migration Service Expertise là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Database Migration Service Expertise trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/aws/tools-for-devops-agent/tree/main/skills/database-migration-service-expertise. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Database Migration Service Expertise?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Database Migration Service Expertise với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Database Migration Service Expertise với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Database Migration Service Expertise có miễn phí không?

Có. Kỹ năng này được aws phát hành trên GitHub theo giấy phép Apache-2.0. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇