migrating-python-udfs
Installation
SKILL.md
Migrate Python UDFs
Migrate Amazon Redshift Python UDFs (plpythonu) to Lambda UDFs before the June 30, 2026 end-of-support deadline. Discovers UDFs via MCP or CLI, converts Python bodies to Lambda handlers, deploys with safe naming, validates, and renames post-approval.
Reference Documentation
- Discovery queries
- Conversion rules and type mapping
- CLI patterns and Data API rules
- IAM and VPC prerequisites
- Rollback procedures
- Performance and cost optimization
Workflow
Phase 1: Discover Clusters
Ask the user which region to target. Then use the AWS MCP to list all Redshift Serverless workgroups and provisioned clusters in that region. Present the list and ask which one(s) to migrate. Do NOT auto-discover across all regions — require the user to specify the region.