dms-schema-conversion
Skill2.8k starsChanged 6 months agoApache-2.0View on GitHub
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.
Trending
Quiet since October.about the whole repository
Who's talking about aws/agent-toolkit-for-aws
- A Hacker News story“Agent Toolkit for AWS”Hacker News · Jun 8, 2026 · 5 points
- @yug1224.com“AIエージェントがAWS環境の構築や運用を効率よく行うための公式ツールキットらしい ClaudeやCursorなどのエージェントに導入して開発を自動化するのが楽しみ yug1224 starred …”Bluesky · Jun 27, 2026 · 2 likes
- @librecanada.bsky.social“GitHub - Webpage "GitHub - aws/agent-toolkit-for-aws: Official, AWS-supported MCP servers, skills, and …”Bluesky · May 10, 2026 · 2 likes
- @yug1224.com“AIエージェントにAWSの操作や開発をサポートさせるためのツールキットらしい 実務でAIを活用してインフラ構築を効率化するのに使えそう yug1224 starred aws/agent-toolkit-for-aws…”Bluesky · Jun 27, 2026 · 1 likes
- sudosubin/agents.nix“agent-skills.github.aws.agent-toolkit-for-aws: 0-unstable-2026-10-03 → 0-unstable-2026-10-05”GitHub · Oct 5, 2026
The biggest 5 of 44 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 44
Talked about on GitHub, Bluesky and Hacker News (44 times).
On GitHub · 39
- Oct 5, 2026agent-skills.github.aws.agent-toolkit-for-aws: 0-unstable-2026-10-03 → 0-unstable-2026-10-05 — sudosubin/agents.nix0 reactions
- Oct 4, 2026codex-plugins.github.aws.agent-toolkit-for-aws: init at 0-unstable-2026-10-03 — sudosubin/agents.nix0 reactions
- Oct 4, 2026codex-marketplaces.github.aws.agent-toolkit-for-aws: init at 0-unstable-2026-10-03 — sudosubin/agents.nix0 reactions
- Oct 4, 2026claude-code-plugins.github.aws.agent-toolkit-for-aws: init at 0-unstable-2026-10-03 — sudosubin/agents.nix0 reactions
- Oct 4, 2026agent-plugins.github.aws.agent-toolkit-for-aws: init at 0-unstable-2026-10-03 — sudosubin/agents.nix0 reactions
34 more on GitHub
- Oct 3, 2026agent-skills.github.aws.agent-toolkit-for-aws: init at 0-unstable-2026-10-03 — sudosubin/agents.nix0 reactions
- Oct 3, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Oct 1, 2026docs(aws): update EFS performance guidance — mouadja02/skills0 reactions
- Sep 30, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 28, 2026aws-skills: upstream update — robomotionio/robomotion-skills0 reactions
- Sep 24, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 23, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 23, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 19, 2026Agent toolkit for AWS — freeflow-community/skill-explorer0 reactions · 1 comment
- Sep 19, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 19, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions · 1 comment
- Sep 8, 2026aws-core: marketplace pins agent-toolkit-for-aws to a pre-fix commit — asm-exec resolves no secrets (fixed upstream, PR #296) — anthropics/claude-plugins-official0 reactions
- Sep 8, 2026feat(telemetry): hook-driven migration telemetry emitter with on-disk attribution — awslabs/startups0 reactions · 1 comment
- Sep 3, 2026(aws-api-mcp-server): MIGRATION.md lists aws___call_aws as a live tool, AWS removed it on 2026-08-31 — awslabs/mcp0 reactions
- Aug 25, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 21, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 18, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 14, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 11, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 7, 2026[bot] Generate Manifests — sator-imaging/suggest-skills0 reactions
- Aug 7, 2026Skills 需补充 references 参考文档(对标 AWS agent-toolkit) — huaweicloud-mate/huaweicloud-devkit0 reactions
- Aug 4, 2026fix: discover skills nested under two categories — vercel-labs/skills0 reactions
- Aug 4, 2026Expand development environment sections — aws/aws-durable-execution-docs0 reactions · 1 comment
- Aug 4, 2026Schedule Batch: Media Host port (JPG convert, S3 upload/delete) with fake + live adapter — SandroBlunt/OrganicGrowthLegacy0 reactions
- Aug 3, 2026add agent skill for using this package — correspondMerchant/LAGO-R-Package0 reactions
- Jul 31, 2026[docs]: Remove Duplicated Kiro Power Content — aws/aws-durable-execution-docs0 reactions
- Jul 25, 2026Install and configure APM tool — scalasm/strands-agents0 reactions
- Jul 7, 2026feat: add Claude Platform on AWS migration skill (.claude/skills/) — aws-samples/anthropic-on-aws0 reactions · 5 comments
- Jul 6, 2026Add weekly AWS resources - 2026-07-06 — sebastianmarines/awesome-aws0 reactions
- Jun 26, 2026agent-toolkit-for-aws: AWS 환경을 위한 MCP 서버 및 도구 모음 — roomedia/ax-trend0 reactions
- Jun 26, 2026Add aws/agent-toolkit-for-aws to Awesome Open Source AI — alvinreal/awesome-opensource-ai0 reactions
- Jun 23, 2026Sandbox backend: AWS Lambda microVMs (Firecracker) — sseshachala/conductai0 reactions
- Jun 17, 2026Agent skills — ryandam9/Explorer0 reactions
- May 14, 2026[Bug]: Cannot install skill using the `npx skills add` command — vercel-labs/skills0 reactions
On Bluesky · 4
- Jun 27, 2026AIエージェントがAWS環境の構築や運用を効率よく行うための公式ツールキットらしい ClaudeやCursorなどのエージェントに導入して開発を自動化するのが楽しみ yug1224 starred aws/agent-toolkit-for-aws… — @yug1224.com2 likes and reposts · 1 reply
- May 10, 2026GitHub - Webpage "GitHub - aws/agent-toolkit-for-aws: Official, AWS-supported MCP servers, skills, and plugins to help AI agents build on… — @librecanada.bsky.social2 likes and reposts
- Jun 27, 2026AIエージェントにAWSの操作や開発をサポートさせるためのツールキットらしい 実務でAIを活用してインフラ構築を効率化するのに使えそう yug1224 starred aws/agent-toolkit-for-aws… — @yug1224.com1 likes and repost
- May 8, 2026aws/agent-toolkit-for-aws: Official, AWS-supported MCP servers, skills, and plugins to help AI agents build on AWS #devopsish — @chrisshort.net0 likes and reposts · 1 reply
On Hacker News · 1
- Jun 8, 2026Agent Toolkit for AWS5 points
In this repository185 other files it gives its agents.
- analyzing-release-readinessSkill
- chatting-with-aws-devops-agentSkill
- coordinating-multi-space-devops-agentSkill
- diff-scanning-with-aws-security-agentSkill
- investigating-incidents-with-aws-devops-agentSkill
- pentesting-with-aws-security-agentSkill
- remediating-with-aws-security-agentSkill
- running-release-testsSkill
- scanning-with-aws-security-agentSkill
- setup-devops-agentSkill
- setup-security-agentSkill
- setupSkill
- threat-modeling-with-aws-security-agentSkill
- agents-buildSkill
- agents-connectSkill
- agents-debugSkill
- agents-deploySkill
- agents-get-startedSkill
- agents-hardenSkill
- agents-optimizeSkill
- agents-paySkill
- agents-paySkill
- amazon-bedrockSkill
- aws-ai-mlSkill
- aws-authSkill
- aws-billing-and-cost-managementSkill
- aws-blocksSkill
- aws-cdkSkill
- aws-cloudformationSkill
- aws-computeSkill
- aws-containersSkill
- aws-databaseSkill
- aws-deploymentSkill
- aws-iamSkill
- aws-messaging-and-streamingSkill
- aws-networkingSkill
- aws-observabilitySkill
- aws-sdk-js-v3-usageSkill
- aws-sdk-python-usageSkill
- aws-sdk-swift-usageSkill
- aws-secrets-managerSkill
- aws-securitySkill
- aws-serverlessSkill
- aws-storageSkill
- aws-well-architected-reviewSkill
- launch-with-awsSkill
- signing-in-to-awsSkill
- amazon-opensearch-serviceSkill
- authoring-mwaa-workflowSkill
- connecting-to-data-sourceSkill
- creating-data-lake-tableSkill
- debugging-mwaa-workflowSkill
- exploring-data-catalogSkill
- finding-data-lake-assetsSkill
- ingesting-into-data-lakeSkill
- querying-data-lakeSkill
- redshift-guideSkill
- storing-and-querying-vectorsSkill
- testing-mwaa-workflowSkill
- upgrading-mwaa-environmentsSkill
- The first 60 shown.
The file
Show its rules and text
We split this skill into the rules it gives an agent
36 rules. About 0 are common, 21 are distinctive, and 15 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈21
Distinctive · estimate
This author's own choices. Worth a look.
15
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 37
Before starting, check that AWS CLI commands can be executed.
- Distinctive: line 49
Check for existing migration projects:
- Very specific: line 67
Run start-metadata-model-import with --origin SOURCE --refresh and the selection rules from step 1.
- Distinctive: line 69
Wait for import completion using the DMS waiter:
- Very specific: line 77
If the waiter fails or is unavailable, fall back to polling describe-metadata-model-imports every 30 seconds with --filter …
- Distinctive: line 106
After each action completes, return to this menu by presenting the same selection again.
- Distinctive: line 114
Ask what to convert: Ask the customer what they want to convert (e.g., "all schemas", "schema public", "tables starting with PROD_").
- Very specific: line 118
Run conversion: Call start-metadata-model-conversion with the migration project and selection rules.
- Distinctive: line 120
Wait for completion: Wait using the DMS waiter:
- Very specific: line 128
If the waiter fails or is unavailable, fall back to polling describe-metadata-model-conversions every 30 seconds with --filter …
- Distinctive: line 134
Post-convert sub-menu: After showing the summary, present options.
- Very specific: line 142
Export as script: Run aws dms start-metadata-model-export-as-script --migration-project-identifier <migration_project_identifier> --origin …
- Very specific: line 143
Apply to target: Run aws dms start-metadata-model-export-to-target --migration-project-identifier <migration_project_identifier> …
- Distinctive: line 146
After completing, ask the customer what they'd like to do next.
- Distinctive: line 156
Ask what to assess: Ask the customer what they want to assess (e.g., "all schemas", "schema pg_catalog", "tables starting with PROD_").
- Very specific: line 160
Run assessment: Call start-metadata-model-assessment with the migration project and selection rules.
- Distinctive: line 176
Offer to fix Action Items: Ask the customer:
- Distinctive: line 179
If yes, load action-items.md and follow the fixing workflow there.
- Very specific: line 209
Show tree root: Call describe-metadata-model-children with selection rules targeting the root level and --origin SOURCE.
- Very specific: line 219
Refresh from database: If the customer asks to refresh, run start-metadata-model-import with selection rules scoped to the current tree …
- Distinctive: line 231
Get the SQL statement: Ask the customer for the SQL statement they want to convert.
- Very specific: line 244
Convert the created model: Call start-metadata-model-conversion with the statement selection rules from step 5.
- Very specific: line 246
Show converted result: Call describe-metadata-model with the statement selection rules from step 5 and --origin SOURCE.
- Very specific: line 248
Export conversion assessment report: Call export-metadata-model-assessment with the source selection rules from step 5.
- Distinctive: line 256
When a customer asks about their source database statistics — such as the number of objects, object types, schema sizes, or a general …
- Very specific: line 260
Run assessment: Call start-metadata-model-assessment with the migration project and selection rules.
- Very specific: line 264
Export conversion assessment report: Call export-metadata-model-assessment with the same selection rules.
- Distinctive: line 273
If they asked "how many tables?" → show only the table count
- Distinctive: line 274
If they asked about a specific schema → show only that schema's stats
- Distinctive: line 276
Offer next steps: Ask if they'd like to see conversion complexity or proceed with conversion.
- Distinctive: line 280
If the customer specifies a scope, use it.
- Distinctive: line 290
Delete the migration project and its associated DMS resources.
- Distinctive: line 307
Delete data providers: Delete both source and target data providers:
- Distinctive: line 350
Credentials: All database credentials are stored in AWS Secrets Manager.
- Very specific: line 353
IAM least-privilege: All IAM roles use confused-deputy condition keys (aws:SourceAccount, aws:SourceArn) and scoped resource ARNs.
- Distinctive: line 361
When any operation fails or returns an error, load troubleshooting.md and follow its guidance to diagnose and resolve the issue.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
DMS Schema Conversion
Overview
This skill handles the full DMS Schema Conversion lifecycle — from first-time setup to running conversions on an existing project.
The AWS MCP server is recommended for streamlined execution, audit logging, and observability. When the MCP server is not available, all operations can be performed via AWS CLI directly.
Key documentation:
- Selection rules in DMS Schema Conversion — scoping operations to specific objects
- Transformation rules in DMS Schema Conversion — renaming schemas, tables, columns during conversion
Global constraint: You MUST fetch and read any linked documentation before acting on it — do NOT rely on memory for any referenced material (selection rules, transformation rules, troubleshooting guides, network configuration, etc.). Documentation contains vendor-specific details that change between engines and API versions.
Guardrail — where this skill's own files live (MCP vs local install)
This skill can be loaded two ways, and they resolve the skill's own bundled files from different places. Determine how the skill was loaded before reading a reference:
- Loaded through the AWS MCP
retrieve_skilltool: The skill is not installed on the local filesystem. You MUST fetch each reference viaretrieve_skillwith thefileparameter (e.g.file="references/setup-wizard.md"). Do NOTfile_readthese paths locally — they do not exist on disk. - Installed locally (e.g.
.kiro/skills/dms-schema-conversion/or~/.claude/skills/dms-schema-conversion/): Read files from the local skill directory using relative paths.
This distinction applies only to the skill's own packaged files. User data and session artifacts are always read from and written to the user's working directory. Never fetch or write customer data through retrieve_skill.
Verify Dependencies
Before starting, check that AWS CLI commands can be executed.
Constraints:
- You MUST verify that AWS CLI commands can be run (via MCP server tools or directly via shell)
- You MUST inform the customer if no execution method is available and ask whether to proceed
- You MUST ask the customer which AWS region to use — do NOT attempt to infer it from the STS response (it does not contain a region field). If the customer is unsure, suggest checking the
AWS_DEFAULT_REGIONenvironment variable or the--regionflag they are using.
Project Selection
Check for existing migration projects:
aws dms describe-migration-projects- If exactly one project exists → ask the customer: "Found migration project
<name>. Would you like to use it, or create a new one?" If they confirm, storemigration_project_identifierand proceed to Actions Menu. If they want a new one, run the setup wizard. - If multiple projects exist → list them and ask the customer to pick one, or offer to create a new project. Store
migration_project_identifier, proceed to Actions Menu. - If no projects exist → ask: "No migration projects found. Would you like to create one?" If yes, load setup-wizard.md and run the full setup wizard from Phase 1. After wizard completes, run Auto Import, then proceed to Actions Menu.
Auto Import
This section runs only after the setup wizard creates a new project. Do NOT run for existing projects.
- Build selection rules to import all schemas from the source server. For
server-name, use the data provider identifier (the short ID from the ARN, e.g.,JIFET2LUZJEJZPDYSOSGANOA2M) or the literalServerNamevalue from the data provider settings (e.g.,"offline"for offline sources). For SQL Server, you MUST includedatabase-namein the object locator. See Selection rules in DMS Schema Conversion for JSON format. - Run
start-metadata-model-importwith--origin SOURCE --refreshand the selection rules from step 1. ExtractRequestIdentifierfrom the response. Wait for import completion using the DMS waiter:
aws dms wait metadata-model-imported \ --migration-project-identifier <migration_project_identifier> \ --filter 'Name=schema-conversion-operation-id,Values=<RequestIdentifier>'If the waiter fails or is unavailable, fall back to polling
describe-metadata-model-importsevery 30 seconds with--filter Name=request-id,Values=<RequestIdentifier>. Terminal statuses: SUCCESS (proceed) or FAILED (check error via theErrorfield in the response).- Show discovered schemas: On success, call
describe-metadata-model-childrenwith--origin SOURCEat the root level to list the imported schemas/databases. Present the discovered names to the customer so they can confirm the correct database connection was established:"Import complete. I found the following schemas/databases:
<list>. Does this look correct?" - Proceed to Actions Menu.
Actions Menu
Present the actions menu using a structured selection tool (e.g., AskUserQuestion) if available — this gives the customer a clickable/selectable list.
For SQL Server → PostgreSQL/Aurora PostgreSQL projects (present as a single-select question "What would you like to do?"):
- Convert database — convert schema objects to the target engine (also produces an conversion assessment report)
- Assess database — run a compatibility assessment (also produces an conversion assessment report)
- Convert statement — convert a single SQL statement
- Clean up — delete migration project and related DMS resources
For all other engine combinations (present as a single-select question "What would you like to do?"):
- Convert database — convert schema objects to the target engine (also produces an conversion assessment report)
- Assess database — run a compatibility assessment (also produces an conversion assessment report)
- Work with tree — browse the metadata model tree
- Clean up — delete migration project and related DMS resources
The customer can always type a custom request via "Other" (e.g., "work with tree", "show database statistics", or "exit"). If the customer selects "Other" and describes an action covered by this skill, handle it accordingly.
After each action completes, return to this menu by presenting the same selection again.
Note on metadata loading:
start-metadata-model-import(withRefresh=false),start-metadata-model-assessment, andstart-metadata-model-conversionall load the source tree for the scoped objects. If metadata was already imported in the current session for a given subtree, it does not need to be re-imported — these operations will work with what is already loaded.
Convert Database
- Ask what to convert: Ask the customer what they want to convert (e.g., "all schemas", "schema public", "tables starting with PROD_").
- Build selection rules: Translate the customer's natural language to selection rules JSON. Refer to Selection rules in DMS Schema Conversion for format, wildcards, and vendor-specific locators.
- Run conversion: Call
start-metadata-model-conversionwith the migration project and selection rules. ExtractRequestIdentifierfrom the response. Wait for completion: Wait using the DMS waiter:
aws dms wait metadata-model-converted \ --migration-project-identifier <migration_project_identifier> \ --filter 'Name=schema-conversion-operation-id,Values=<RequestIdentifier>'If the waiter fails or is unavailable, fall back to polling
describe-metadata-model-conversionsevery 30 seconds with--filter Name=request-id,Values=<RequestIdentifier>. Terminal statuses: SUCCESS (proceed) or FAILED (check error).- Export conversion assessment report: On conversion success, call
export-metadata-model-assessmentwith selection rules usingrule-action: "explicit"(this API requires explicit rules, notinclude). Provide the customer with S3 links for both PDF and CSV reports (PdfReport.S3ObjectKeyandCsvReport.S3ObjectKey). - Show summary: Download the Summary CSV from S3 using
aws s3 cp s3://<bucket>/<CsvReport.S3ObjectKey> ./Summary.csv. Present its contents to the customer — show the number of objects per category, how many converted automatically, and how many have Action Items at each complexity level. Post-convert sub-menu: After showing the summary, present options. Only show "Apply to target" if the target is a live target (not virtual):
"What would you like to do next?
- Fix Action Items — review and fix Action Items from the conversion assessment report
- Export as script — export converted DDL as SQL script to S3
- Apply to target — apply converted objects to the target database (live targets only)
- Back — return to actions menu"
- Fix Action Items: Load action-items.md and follow the fixing workflow there.
- Export as script: Run
aws dms start-metadata-model-export-as-script --migration-project-identifier <migration_project_identifier> --origin TARGET --selection-rules '<json>'. ExtractRequestIdentifier. Wait viaaws dms wait metadata-model-exported-as-script --migration-project-identifier <id> --filter 'Name=schema-conversion-operation-id,Values=<RequestIdentifier>'. Provide the S3 link on completion. - Apply to target: Run
aws dms start-metadata-model-export-to-target --migration-project-identifier <migration_project_identifier> --selection-rules '<json>'. Optionally pass--overwrite-extension-packif the customer confirms. ExtractRequestIdentifier. Wait viaaws dms wait metadata-model-exported-to-target --migration-project-identifier <id> --filter 'Name=schema-conversion-operation-id,Values=<RequestIdentifier>'. Inform the customer on completion. - Back: Return to Actions Menu.
After completing, ask the customer what they'd like to do next.
Assess Database
Assessment analyzes conversion complexity and generates an conversion assessment report without actually converting any objects. Use this when the customer wants to understand the migration effort before committing to conversion.
Important: If the customer already ran a conversion on the same scope, a separate assessment is not necessary — conversion already produces an conversion assessment report. Inform the customer: "You already have an conversion assessment report from the conversion you ran. Would you like me to show that report instead, or do you want to re-run assessment on a different scope?"
- Ask what to assess: Ask the customer what they want to assess (e.g., "all schemas", "schema pg_catalog", "tables starting with PROD_").
- Build selection rules: Translate the customer's natural language to selection rules JSON. Refer to Selection rules in DMS Schema Conversion for format, wildcards, and vendor-specific locators.
- Run assessment: Call
start-metadata-model-assessmentwith the migration project and selection rules. ExtractRequestIdentifierfrom the response. Wait for completion: Wait using the DMS waiter:
aws dms wait metadata-model-assessed \ --migration-project-identifier <migration_project_identifier> \ --filter 'Name=schema-conversion-operation-id,Values=<RequestIdentifier>'If the waiter fails or is unavailable, fall back to polling
describe-metadata-model-assessmentsevery 30 seconds with--filter Name=request-id,Values=<RequestIdentifier>. Terminal statuses: SUCCESS (proceed) or FAILED (check error).- Export conversion assessment report: On success, call
export-metadata-model-assessmentwith the same selection rules. Provide the customer with S3 links for both PDF and CSV reports (PdfReport.S3ObjectKeyandCsvReport.S3ObjectKey). The report contains conversion complexity statistics, Action Items, and estimated effort. - Show summary: Download the Summary CSV from S3 using
aws s3 cp s3://<bucket>/<CsvReport.S3ObjectKey> ./Summary.csv. Present its contents to the customer — show the number of objects per category, how many converted automatically, and how many have Action Items at each complexity level. Offer to fix Action Items: Ask the customer:
"Would you like me to help fix the Action Items?"
If yes, load action-items.md and follow the fixing workflow there.
After completing, ask the customer what they'd like to do next.
Review Action Items
Load action-items.md and follow the workflow there.
After completing, ask the customer what they'd like to do next.
Work with Tree
The metadata tree represents database schemas hierarchically. It contains two kinds of elements:
- Objects — actual database objects (tables, functions, views, sequences, indexes) that have SQL definitions
- Categories — virtual grouping containers ("Schemas", "Tables", "Functions") that organize objects for navigation but have no SQL definitions
The tree uses on-demand loading — metadata is retrieved from the database only when imported. See Navigating the metadata model for full details.
Navigation uses two APIs:
describe-metadata-model-children— returns the children of a given node, each with its ownSelectionRulesfor drilling deeperdescribe-metadata-model— returns the name, type, and SQL definition of a specific object
Both require --origin SOURCE or --origin TARGET and accept only explicit selection rules.
- Show tree root: Call
describe-metadata-model-childrenwith selection rules targeting the root level and--origin SOURCE. If the tree is empty, automatically run a metadata import (same as Auto Import) and then re-display the tree root. - Navigate: Each child in the response has
MetadataModelNameandSelectionRules. Present the children and ask the customer what to do:- Show children — drill into a child by calling
describe-metadata-model-childrenwith the child'sSelectionRulesas the--selection-rulesparameter - Show definition — display the DDL for the selected object (see step 3). Only available for objects, not categories.
- Go up — return to the parent node
- Exit tree — return to actions menu
- Show children — drill into a child by calling
- Show definition: Call
describe-metadata-modelwith the child'sSelectionRulesand--origin SOURCE. The response includesDefinition(SOURCE DDL) andTargetMetadataModels(list of converted counterparts with their ownSelectionRules). To get the TARGET DDL, calldescribe-metadata-modelagain withSelectionRulesfromTargetMetadataModels[0]and--origin TARGET. Present both clearly labeled as SOURCE and TARGET. - Refresh from database: If the customer asks to refresh, run
start-metadata-model-importwith selection rules scoped to the current tree position,--origin SOURCE --refresh. ExtractRequestIdentifier. Wait viaaws dms wait metadata-model-imported --migration-project-identifier <id> --filter 'Name=schema-conversion-operation-id,Values=<RequestIdentifier>'. After refresh completes, re-display the current node's children.
After completing, ask the customer what they'd like to do next.
Convert Statement
Restriction: This feature is only available for SQL Server → PostgreSQL/Aurora PostgreSQL migration projects. Do NOT offer or show this option for any other source/target engine combination.
- Determine context: Navigate the metadata tree to find the target location. For SQL Server this is server → database → schema; for other engines it's server → schema. Use
describe-metadata-model-childrento drill into nodes until you reach the schema level. Let the customer pick the schema (or database + schema for SQL Server). If the tree is empty, ask the customer to provide the location manually. - Get the SQL statement: Ask the customer for the SQL statement they want to convert.
- Build selection rules for the schema: Build selection rules targeting the schema location. See Selection rules in DMS Schema Conversion for format and vendor-specific locators.
Create metadata model: Generate a unique model name (e.g.,
statement-<timestamp>). Callstart-metadata-model-creationwith:--selection-rules— the schema selection rules from step 3--metadata-model-name— the generated model name--properties '{"StatementProperties": {"Definition": "<sql_statement>"}}'
Extract
RequestIdentifierfrom the response. Wait viaaws dms wait metadata-model-created --migration-project-identifier <id> --filter 'Name=schema-conversion-operation-id,Values=<RequestIdentifier>'.- Build selection rules for the statement: Build selection rules targeting the specific statement. See Selection rules in DMS Schema Conversion — use
statement-nameset to the model name. - Convert the created model: Call
start-metadata-model-conversionwith the statement selection rules from step 5. ExtractRequestIdentifier. Wait viaaws dms wait metadata-model-converted --migration-project-identifier <id> --filter 'Name=schema-conversion-operation-id,Values=<RequestIdentifier>'. - Show converted result: Call
describe-metadata-modelwith the statement selection rules from step 5 and--origin SOURCE. From the response, extractTargetMetadataModels[0].SelectionRules. Then calldescribe-metadata-modelwith those target selection rules and--origin TARGET. Present the converted SQL from theDefinitionfield clearly to the customer. - Export conversion assessment report: Call
export-metadata-model-assessmentwith the source selection rules from step 5. Provide the customer with S3 links for PDF and CSV reports.
After completing, ask the customer what they'd like to do next.
Database Statistics
When a customer asks about their source database statistics — such as the number of objects, object types, schema sizes, or a general overview — run an assessment and present the results as a concise summary.
- Build selection rules based on the customer's scope. If they specify particular schemas or objects, scope accordingly. If no scope is specified, default to all schemas on the source server (wildcard
%). See Selection rules in DMS Schema Conversion for JSON format. - Run assessment: Call
start-metadata-model-assessmentwith the migration project and selection rules. See schema-conversion-operations.md for execution details. - Wait for completion using the DMS waiter or fallback polling as described in schema-conversion-operations.md.
- Export conversion assessment report: Call
export-metadata-model-assessmentwith the same selection rules. Download and present only what the customer asked for: Download the Summary CSV from S3:
aws s3 cp s3://<bucket>/<CsvReport.S3ObjectKey> ./Summary.csvThe report contains many data points. Present only the information the customer requested — do not dump the entire report. For example:
- If they asked "how many tables?" → show only the table count
- If they asked about a specific schema → show only that schema's stats
- Offer next steps: Ask if they'd like to see conversion complexity or proceed with conversion.
Constraints:
- If the customer specifies a scope, use it. If not, default to all schemas.
- Present only what the customer asked for — do not overwhelm with unrequested data.
- Present statistics in a clear, tabular format.
After completing, ask the customer what they'd like to do next.
Clean Up
Delete the migration project and its associated DMS resources. Resources MUST be deleted in dependency order.
Confirm with customer: List the resources that will be deleted and ask for confirmation:
aws dms describe-migration-projects --filter Name=migration-project-identifier,Values=<migration_project_identifier>Show the project name, source/target data providers, and instance profile.
Delete migration project:
aws dms delete-migration-project \ --migration-project-identifier <migration_project_identifier>Delete data providers: Delete both source and target data providers:
aws dms delete-data-provider \ --data-provider-identifier <source_data_provider_identifier> aws dms delete-data-provider \ --data-provider-identifier <target_data_provider_identifier>Delete instance profile:
aws dms delete-instance-profile \ --instance-profile-identifier <instance_profile_identifier>Delete subnet group:
aws dms delete-replication-subnet-group \ --replication-subnet-group-identifier <subnet_group_identifier>- Confirm completion: Inform the customer that all DMS Schema Conversion resources have been removed.
Constraints:
- You MUST get explicit customer confirmation before deleting any resources.
- You MUST delete in order: migration project first, then data providers, then instance profile, then subnet group — deleting in the wrong order will fail due to dependencies.
- You MUST NOT delete the underlying infrastructure (VPC, subnets, security groups, RDS instances, Secrets Manager secrets) — those are outside the scope of DMS Schema Conversion cleanup.
After completing, ask the customer what they'd like to do next.
Cancel Awareness
During any running async operation, if the customer requests cancellation, refer to cancel-operations.md for the correct cancel command mapping.
Security Considerations
- Credentials: All database credentials are stored in AWS Secrets Manager. Never embed credentials in data provider settings or log them to output.
- Encryption at rest: S3 buckets use SSE-S3 encryption (default). SSE-KMS is not supported by DMS Schema Conversion.
- Encryption in transit: Online connections should use
requireor stronger SSL mode.noneshould only be used in isolated test environments. - IAM least-privilege: All IAM roles use confused-deputy condition keys (
aws:SourceAccount,aws:SourceArn) and scoped resource ARNs. - Network access: DMS instance profiles operate within VPC subnets with security group restrictions.
- See DMS security best practices for additional guidance.
Error Handling
When any operation fails or returns an error, load troubleshooting.md and follow its guidance to diagnose and resolve the issue. Explain the error to the customer in plain language and offer options: retry, try a different action, or exit.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

