All skills
aws avatar

/dms-schema-conversion

@cf45767

Handles the full DMS Schema Conversion lifecycle including creating migration projects, converting database schemas to a target engine, running compatibility assessments, navigating metadata trees, exporting converted DDL to S3, applying schema changes to a target database, and converting SQL statements between database engines. Applies when migrating database schemas between heterogeneous engines using AWS DMS Schema Conversion.

Use this Skill: https://skilld.dev/gh/aws/agent-toolkit-for-aws/dms-schema-conversion

This session only. Nothing lands on disk.

referencesschema-conversion-operations.md

≈1.7k tokens on demand. Your agent reads this file only when SKILL.md points to it.

Schema Conversion Operations Reference

Command Summary

Command Purpose Async Poll via Waiter
start-metadata-model-import Import metadata from source or target DB Yes describe-metadata-model-imports metadata-model-imported
start-metadata-model-conversion Convert source schema to target Yes describe-metadata-model-conversions metadata-model-converted
start-metadata-model-assessment Assess conversion complexity Yes describe-metadata-model-assessments metadata-model-assessed
start-metadata-model-creation Create statement-based model Yes describe-metadata-model-creations metadata-model-created
start-metadata-model-export-as-script Export DDL to S3 Yes describe-metadata-model-exports-as-script metadata-model-exported-as-script
start-metadata-model-export-to-target Apply converted DDL to target DB Yes describe-metadata-model-exports-to-target metadata-model-exported-to-target
export-metadata-model-assessment Generate PDF/CSV report to S3 Sync N/A sync
describe-metadata-model-children Navigate tree structure Sync N/A sync
describe-metadata-model Get object definition (DDL) Sync N/A sync
cancel-metadata-model-conversion Cancel running conversion Yes* N/A metadata-model-conversion-cancelled
cancel-metadata-model-creation Cancel running creation Yes* N/A metadata-model-creation-cancelled

* The cancel API call returns synchronously, but the cancellation state transition is async (CANCEL_RECEIVED → CANCELING → CANCELED). Use the corresponding waiter to confirm the operation reached the CANCELED state.

Note: All waiters require --filter 'Name=schema-conversion-operation-id,Values=<RequestId>' in addition to --migration-project-identifier.

For full parameter details and examples, refer to the linked CLI documentation for each command.


DMS Waiters

Use DMS waiters to wait for async operations to complete:

Operation Waiter command
Import aws dms wait metadata-model-imported
Conversion aws dms wait metadata-model-converted
Assessment aws dms wait metadata-model-assessed
Creation (statement) aws dms wait metadata-model-created
Export as script aws dms wait metadata-model-exported-as-script
Export to target aws dms wait metadata-model-exported-to-target
Cancel conversion aws dms wait metadata-model-conversion-cancelled
Cancel creation aws dms wait metadata-model-creation-cancelled
Extension pack aws dms wait extension-pack-associated

Documentation: https://docs.aws.amazon.com/cli/latest/reference/dms/wait/index.html


Operation Statuses

All async operations use the same status values:

Status Meaning
RECEIVED Request received, queued
IN_PROGRESS Operation is running
SUCCESS Operation completed successfully
FAILED Operation failed — check error details
CANCEL_RECEIVED Cancellation request received
CANCELING Cancellation in progress
CANCELED Operation was cancelled
RETRY Operation is being retried
PENDING Operation is pending

Execution Pattern

  1. Call start-* → extract RequestIdentifier
  2. Wait for completion using the corresponding aws dms wait command (see DMS Waiters table)
  3. If the waiter returns successfully → proceed to next step
  4. If the waiter fails or is unavailable (e.g., Invalid choice due to outdated CLI) → fall back to manual polling with the corresponding describe-* command until status reaches SUCCESS or FAILED

Fallback polling pattern (use when waiter is not available):

aws dms describe-metadata-model-<operation>s \
  --migration-project-identifier <migration_project_identifier> \
  --filter Name=request-id,Values=<RequestIdentifier>

Check Requests[0].Status — repeat every 30 seconds until it reaches SUCCESS or FAILED.

Constraint: You MUST NOT proceed to the next step until the operation has completed. If the waiter fails or times out, you MUST fall back to polling with the describe command. Never assume an operation succeeded without confirming its status.


Key Notes

  • describe-metadata-model returns TargetMetadataModels with target SelectionRules — use these to query the TARGET tree (do NOT reuse source selection rules for target)
  • describe-metadata-model-children returns MetadataModelChildren[] with MetadataModelName and SelectionRules — use the child's SelectionRules to drill deeper
  • export-metadata-model-assessment is synchronous — returns S3 links immediately (PdfReport.S3ObjectKey, CsvReport.S3ObjectKey)
  • start-metadata-model-creation only supports SQL Server → PostgreSQL/Aurora PostgreSQL

Source: SKILL.md on GitHub

1 warning1mo3 checks · Risk SAFE
  • Gen Agent Trust Hub1mo

    This skill provides a comprehensive interface for managing the AWS DMS Schema Conversion lifecycle. It includes a multi-phase setup wizard for resource configuration, tools for database assessment and conversion, and guidance for resolving manual action items, while incorporating several security best practices such as Secrets Manager integration and restricted file permissions.

  • Socket1mo

    No alerts

  • Snyk1mo

    Risk: MEDIUM · 1 issue

Signed by skilld at cf45767. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub yesterday.

Activeupdated 2 months ago
version
3

README badge

README badge for aws/agent-toolkit-for-aws/dms-schema-conversion