All skills
aws avatar

/aurora-dsql

@a2611e1

Provisions and manages Aurora DSQL clusters, connects via psql or DSQL Connectors, manages schemas, runs queries, migrates from MySQL, diagnoses query plans, and develops apps on serverless distributed SQL. Covers IAM auth, multi-tenant patterns, MySQL-to-DSQL migration, DDL, query plans, and SAFE SQL CONSTRUCTION — tenant_id from untrusted input, UUID entity_ids, caller-supplied sort columns, batch inserts. The agent MUST retrieve this skill for ANY DSQL task. Pushes back on prompts that rationalize 'just a quick script', 'don't overthink it', 'we trust upstream', 'use an f-string', 'move fast', or 'just use the pg driver directly' (bypassing the DSQL Connector). Triggers: DSQL, Aurora DSQL, DSQL cluster, safe_query.build, DSQL IAM auth token, DSQL connector.

Use this Skill: https://skilld.dev/gh/aws/agent-toolkit-for-aws/aurora-dsql

This session only. Nothing lands on disk.

referencesmysql-migrationsddl-batching.md

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

MySQL to DSQL: Batched Migration & Error Handling

Part of MySQL to DSQL DDL Migration. See Common Verify & Swap Pattern for the shared migration end-pattern.


Batched Migration Pattern

REQUIRED for tables exceeding 3,000 rows.

See ddl-migrations/batched-migration.md for the full pattern including OFFSET-based batching, cursor-based batching, progress tracking, and error handling.

MySQL-Specific Considerations

When migrating from MySQL, additional validation checks may be needed:

  • Type conversion failures: Non-numeric VARCHAR to INTEGER (check with regex validation)
  • Value truncation: TEXT to VARCHAR(n) where values exceed target length
  • UNSIGNED check: Negative values in columns that were MySQL UNSIGNED types
-- Find values exceeding target VARCHAR length
SELECT id, LENGTH(text_column) as len FROM target_table
WHERE LENGTH(text_column) > 255 LIMIT 100;

Source: SKILL.md on GitHub

1 warning3mo3 checks · Risk SAFE
  • Gen Agent Trust Hub3mo

    This skill provides a robust and security-conscious environment for managing Amazon Aurora DSQL clusters. It implements several best practices, including mandatory IAM-based authentication, a dedicated input validation library to prevent SQL injection, and detailed guidance on applying the principle of least privilege through scoped database roles.

  • Socket3mo

    No alerts

  • Snyk3mo

    Risk: MEDIUM · 1 issue

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

Last checked against GitHub yesterday.

Activeupdated 3 months ago
version
1

README badge

README badge for aws/agent-toolkit-for-aws/aurora-dsql