All skills
aws avatar

/migrating-to-amazon-redshift

@5c779cf

Guides an end-to-end data-warehouse migration to Amazon Redshift — discovery, schema/SQL/stored-procedure/macro/script conversion, data migration, validation, performance comparison, and reporting. Source-routed via `references/<source>/`; Teradata (Vantage) is the supported source; additional sources are added as their own `references/<source>/` sets. Text-only knowledge (no executable code) — the AI generates all execution at runtime. Applies when a user wants to migrate Teradata to Amazon Redshift, convert Teradata DDL/SQL/stored procedures/macros/BTEQ to Redshift/RSQL, or assess Teradata-to-Redshift migration complexity. Applies only to migrations targeting Amazon Redshift; migrations to other platforms (Snowflake, BigQuery, Databricks, etc.) are out of scope regardless of source. Does not cover general Redshift administration, performance tuning, or troubleshooting of existing Redshift clusters (no migration involved), or sources not listed under references/.

Use this Skill: https://skilld.dev/gh/aws/agent-toolkit-for-aws/migrating-to-amazon-redshift

This session only. Nothing lands on disk.

referencesteradatareporting.md

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

Reporting — migration status report

AI-facing knowledge: how to aggregate every phase's artifacts into a single report.

Purpose

Roll up the per-phase result/ artifacts into one customer-facing migration report at output/reporting/result/migration_report.md (plus optional .json for machines / .html for sharing). The report answers: what was migrated, how much was automated, what passed validation, how performance compares, and what manual work remains.

Inputs (the data contracts it aggregates)

Phase Artifact What the report pulls
Discovery discovery/result/inventory.json object counts by type, total tables/rows/size
Conversion converted DDL/SQL/RSQL + conversion/result/manual_review.json objects converted, confidence scores, manual-review backlog
Data migration data_migration/result/migration_manifest.json tables loaded, row counts, bytes, per-table status
Validation validation/result/validation_report.json per-table pass/fail, mismatches
Performance performance/result/perf_baseline.json, perf_compare.json TD vs RS runtimes, regressions

Read whatever artifacts exist (a partial run still produces a partial report — note missing phases rather than failing).

Report sections

  1. Executive summary — scope (databases/objects/rows), % automated (objects converted at high confidence with no manual-review items ÷ total), validation pass rate, headline perf delta, count of open manual items.
  2. Discovery — inventory snapshot (objects by type, largest tables).
  3. Conversion — converted vs flagged, confidence distribution, unconvertible kinds (function/trigger/join-index). Pull the backlog from manual_review.json.
  4. Data migration — tables migrated, total rows/bytes, failures (from the manifest).
  5. Validation — pass/fail per table, summary of mismatches and tolerances applied.
  6. Performance — per-query and aggregate TD→RS deltas; call out regressions.
  7. Manual-review backlog — consolidated list (construct, location, suggested fix, owner) sourced from conversion confidence + flagged items.
  8. Risks & next steps — anything blocking cutover.

migration_report.json (machine-readable shape)

{
  "generated_at": "ISO-8601",
  "scope": {"databases": 2, "tables": 31, "rows": 19500000},
  "summary": {
    "objects_total": 0, "objects_converted": 0, "pct_automated": 0.0,
    "validation_pass_rate": 0.0, "manual_review_items": 0,
    "perf_delta_pct_median": 0.0
  },
  "phases": {
    "discovery":   {"status": "complete", "artifact": "discovery/result/inventory.json"},
    "conversion":  {"status": "complete", "converted": 0, "flagged": 0, "low_confidence": 0},
    "data_migration": {"status": "complete", "tables_loaded": 0, "tables_failed": 0, "rows": 0},
    "validation":  {"status": "complete", "tables_passed": 0, "tables_failed": 0},
    "performance": {"status": "complete", "regressions": 0}
  },
  "manual_review": [
    {"object": "db.proc_x", "construct": "QUALIFY+GROUP BY", "confidence": 0.7, "suggestion": "…"}
  ],
  "risks": []
}

How automation % + backlog roll up

  • The conversion phase assigns a confidence score (per the rubric in conversion-rules.md) and manual-review items per object. Count an object as "automated" when confidence is high and it has zero manual-review items and it isn't an unconvertible kind. pct_automated = automated ÷ total objects.
  • The backlog = union of all objects with manual-review items or below the confidence threshold, carrying the construct + suggested fix straight from the conversion output (manual_review.json) — that's the actionable to-do list for the team.

Generation notes

  • The AI generates the report script/templating at runtime; this doc is the structure + contract, not code.
  • Keep numbers traceable: every figure should be derivable from a named artifact above.

TODO / extend

  • manual_review.json schema is defined in conversion-rules.md (producer). The report reads its items[] (object, object_kind, construct, suggested_rewrite, confidence, status) + summary for the backlog and % automated.
  • Add an HTML template once a sample full run exists.

Source: SKILL.md on GitHub

No alerts2mo3 checks · Risk SAFE
  • Gen Agent Trust Hub2mo

    This skill provides a structured methodology for migrating data from Teradata to Amazon Redshift, utilizing AI to generate environment-specific scripts at runtime. It incorporates strong security considerations such as identity-based access (IAM), encryption at rest and in transit, and secret management using native cloud services. While the skill utilizes dynamic script generation and external package installation, these are implemented with specific safety instructions like input validation and the use of trusted libraries.

  • Socket2mo

    No alerts

  • Snyk2mo

    Risk: LOW · No issues

Signed by skilld at 5c779cf. 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
1

README badge

README badge for aws/agent-toolkit-for-aws/migrating-to-amazon-redshift